From: Michael Tremer Date: Mon, 5 Apr 2010 13:07:18 +0000 (+0200) Subject: toolchain: GCC improvements. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6847386cb7763a91f978f59e3ffa98ed4e0854d0;p=ipfire-3.x.git toolchain: GCC improvements. Harden gcc-static and create all gccs with our target. --- diff --git a/pkgs/toolchain/gcc-static/gcc-static.nm b/pkgs/toolchain/gcc-static/gcc-static.nm index 1beab0b3b..6683204d1 100644 --- a/pkgs/toolchain/gcc-static/gcc-static.nm +++ b/pkgs/toolchain/gcc-static/gcc-static.nm @@ -33,6 +33,7 @@ define STAGE_BUILD --target=$(TARGET) \ $(CONFIG_CPU) \ --prefix=$(TOOLS_DIR) \ + --libexecdir=$(TOOLS_DIR)/lib \ --disable-decimal-float \ --disable-libgomp \ --disable-libmudflap \ @@ -42,9 +43,10 @@ define STAGE_BUILD --disable-multilib \ --disable-shared \ --disable-nls \ + --enable-espf \ $(CONFIGURE_ARGS) - cd $(DIR_SRC)/gcc-build && make $(PARALLELISMFLAGS) + cd $(DIR_SRC)/gcc-build && make #$(PARALLELISMFLAGS) endef define STAGE_INSTALL diff --git a/pkgs/toolchain/gcc/gcc.nm b/pkgs/toolchain/gcc/gcc.nm index 01de9e39d..3fda3d7f1 100644 --- a/pkgs/toolchain/gcc/gcc.nm +++ b/pkgs/toolchain/gcc/gcc.nm @@ -23,7 +23,10 @@ define STAGE_BUILD CC="$(TARGET)-gcc -B$(TOOLS_DIR)/lib/" \ RANLIB=$(TARGET)-ranlib \ ../$(THISAPP)/configure \ + --host=$(TARGET) \ + --build=$(TARGET) \ --prefix=$(TOOLS_DIR) \ + --libexecdir=$(TOOLS_DIR)/lib \ --with-local-prefix=$(TOOLS_DIR) \ --enable-clocale=gnu \ --enable-shared \ @@ -32,11 +35,12 @@ define STAGE_BUILD --enable-languages=c,c++ \ --disable-libstdcxx-pch \ --disable-multilib \ + --disable-libssp \ --enable-espf \ \ $(CONFIG_CPU) - cd $(DIR_SRC)/gcc-build && make $(PARALLELISMFLAGS) + cd $(DIR_SRC)/gcc-build && make #$(PARALLELISMFLAGS) endef define STAGE_INSTALL