mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 06:33:31 +00:00
d4bf55a308
Issue #1051.
25 lines
1.2 KiB
PHP
Executable File
25 lines
1.2 KiB
PHP
Executable File
GCC_PATCHES_DIR = $(GENODE_DIR)/tool/patches/gcc-$(GCC_VERSION)
|
|
GCC_PATCHES = $(shell cat $(GCC_PATCHES_DIR)/series)
|
|
|
|
$(CONTRIB_DIR)/gcc-$(GCC_VERSION)/configure:: $(CONTRIB_DIR)/gcc-$(GCC_VERSION)
|
|
$(ECHO) "$(BRIGHT_COL)patching gcc build system...$(DEFAULT_COL)"
|
|
$(VERBOSE)for p in $(GCC_PATCHES); do \
|
|
patch -d $(CONTRIB_DIR)/gcc-$(GCC_VERSION) -p1 -i $(GCC_PATCHES_DIR)/$$p; done;
|
|
@#
|
|
@# Re-generate configure scripts
|
|
@#
|
|
$(VERBOSE)cd $(CONTRIB_DIR)/gcc-$(GCC_VERSION); autogen Makefile.def
|
|
$(VERBOSE)cd $(CONTRIB_DIR)/gcc-$(GCC_VERSION)/libgcc; $(AUTOCONF)
|
|
$(VERBOSE)cd $(CONTRIB_DIR)/gcc-$(GCC_VERSION)/libstdc++-v3; $(AUTOCONF)
|
|
$(VERBOSE)cd $(CONTRIB_DIR)/gcc-$(GCC_VERSION)/gcc; $(AUTOCONF)
|
|
$(VERBOSE)cd $(CONTRIB_DIR)/gcc-$(GCC_VERSION); $(AUTOCONF)
|
|
$(VERBOSE)touch $@
|
|
@#
|
|
@# Fix a bug in gcc 4.6.1 that causes compile errors when building Qt4 for ARM
|
|
@# More detailed description at and solution from http://gcc.gnu.org/ml/gcc-patches/2010-11/msg02245.html
|
|
@#
|
|
ifeq ($(GCC_VERSION),4.6.1)
|
|
$(ECHO) "$(BRIGHT_COL)patching gcc...$(DEFAULT_COL)"
|
|
$(VERBOSE)sed -i "/|| (volatilep && flag_strict_volatile_bitfields > 0/s/)/ \&\& (bitpos % GET_MODE_ALIGNMENT (mode) != 0))/" $(CONTRIB_DIR)/gcc-$(GCC_VERSION)/gcc/expr.c
|
|
endif
|