]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Fixed building the (cross-)toolchain.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 12 Jul 2008 22:56:15 +0000 (00:56 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 12 Jul 2008 22:56:15 +0000 (00:56 +0200)
lfs/binutils
lfs/gcc

index 9f5955d97e8b64a1c707aa86772cdfea48033848..9abac72c57ffc9f52afb1d48ee9f1f5f1e71f13b 100644 (file)
@@ -93,6 +93,7 @@ ifeq "$(PASS)" "2"
                AR=$(IFS_TARGET)-ar \
                RANLIB=$(IFS_TARGET)-ranlib \
                ../$(THISAPP)/configure \
+                       --target=$(IFS_TARGET) \
                        --prefix=$(TOOLS_DIR) \
                        --disable-nls \
                        --with-lib-path=$(TOOLS_DIR)/lib
diff --git a/lfs/gcc b/lfs/gcc
index 3adc45b5b9ea07ba812454e06f480350a32ba01c..f99907c29017ab7217fc5fa2dd51250968e5425f 100644 (file)
--- a/lfs/gcc
+++ b/lfs/gcc
@@ -39,6 +39,10 @@ else
        TARGET = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)-pass$(PASS)
 endif
 
+ifeq "$(MACHINE)" "i586"
+       CONFIGURE_ARGS = --disable-decimal-float
+endif
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -89,7 +93,8 @@ endif
                        --enable-checking=none \
                        --with-mpfr=$(TOOLS_DIR) \
                        --with-gmp=$(TOOLS_DIR) \
-                       --disable-werror
+                       --disable-werror \
+                       $(CONFIGURE_ARGS)
        cd $(DIR_SRC)/gcc-build && make $(PARALLELISMFLAGS)
        cd $(DIR_SRC)/gcc-build && make install
 
@@ -138,7 +143,8 @@ endif
                        --disable-bootstrap \
                        --disable-werror \
                        --disable-nls \
-                       --disable-libgomp
+                       --disable-libgomp \
+                       $(CONFIGURE_ARGS)
        ## Libgomp was disabled here because it doesn't want to compile ##
        cd $(DIR_SRC)/gcc-build && make -j $(PARALLELISM)
        cd $(DIR_SRC)/gcc-build && make install