From: Michael Tremer Date: Wed, 18 Jun 2008 12:57:58 +0000 (+0000) Subject: Made gcc working with fpie. X-Git-Tag: v3.0-alpha1~947 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fcf7b87f76ce638970f5eef93243d7a204fe9d80;p=ipfire-3.x.git Made gcc working with fpie. --- diff --git a/lfs/gcc b/lfs/gcc index d713f620b..ac6bd6d9b 100644 --- a/lfs/gcc +++ b/lfs/gcc @@ -48,7 +48,7 @@ objects = $(DL_FILE) \ $(THISAPP)-uClibc_locale-1.patch \ $(THISAPP)-fstack_protector-1.patch \ $(THISAPP)-fortify_source-2.patch \ - $(THISAPP)-fpie-2.patch + $(THISAPP)-fpie-1.patch install : $(TARGET) @@ -85,6 +85,7 @@ endif --disable-libssp \ --disable-libgomp \ --disable-nls \ + --enable-checking=none \ --with-mpfr=$(TOOLS_DIR) \ --with-gmp=$(TOOLS_DIR) \ --disable-werror @@ -93,6 +94,10 @@ endif ln -fvs gcc $(TOOLS_DIR)/bin/cc ln -sfv libgcc.a $$($(IFS_TARGET)-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/') + ln -svf ../include-fixed/syslimits.h \ + $(TOOLS_DIR)/lib/gcc/$(IFS_TARGET)/$(VER)/include/syslimits.h + ln -svf ../include-fixed/limits.h \ + $(TOOLS_DIR)/lib/gcc/$(IFS_TARGET)/$(VER)/include/limits.h endif ifeq "$(PASS)" "2" @@ -101,7 +106,7 @@ ifeq "$(SSP)" "1" cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-fstack_protector-1.patch endif ifeq "$(PIE)" "1" - cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-fpie-2.patch + cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-fpie-1.patch endif cd $(DIR_APP) && sed 's@\./fixinc\.sh@-c true@' -i gcc/Makefile.in cd $(DIR_APP) && sed 's/^XCFLAGS =$$/& -fomit-frame-pointer/' -i gcc/Makefile.in