]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Made gcc working with fpie.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 18 Jun 2008 12:57:58 +0000 (12:57 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 18 Jun 2008 12:57:58 +0000 (12:57 +0000)
lfs/gcc

diff --git a/lfs/gcc b/lfs/gcc
index d713f620b00b2b9a48ee6c45a9da7363f9c94108..ac6bd6d9b33fda525378c7f6100eb245e111758c 100644 (file)
--- 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