From: Michael Tremer Date: Sun, 5 Sep 2010 13:45:29 +0000 (+0200) Subject: gcc: Enable bootstrap for gcc and clearify some switches. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f23b0b6ece3b77a7be9f3182b603d2ded3be808f;p=ipfire-3.x.git gcc: Enable bootstrap for gcc and clearify some switches. --- diff --git a/pkgs/core/gcc/gcc.nm b/pkgs/core/gcc/gcc.nm index 0007b0a05..a326c61c8 100644 --- a/pkgs/core/gcc/gcc.nm +++ b/pkgs/core/gcc/gcc.nm @@ -40,7 +40,7 @@ define PKG_DESCRIPTION endef PKG_BUILD_DEPS+= autogen cloog-devel dejagnu elfutils-devel expect gmp-devel \ - libffi-devel mpc-devel mpfr-devel ppl-devel + libffi-devel mpc-devel mpfr-devel pkg-config ppl-devel zlib-devel PKG_DEPS-gcc += binutils libgcc-devel ifeq "$(MACHINE)" "i586" @@ -121,6 +121,8 @@ endef define STAGE_BUILD cd $(DIR_SRC)/gcc-build && \ + XCFLAGS="$(CFLAGS)" \ + TCFLAGS="$(CFLAGS)" \ ../$(THISAPP)/configure \ $(CONFIG_CPU) \ --prefix=/usr \ @@ -131,11 +133,14 @@ define STAGE_BUILD --enable-threads=posix \ --enable-__cxa_atexit \ --enable-clocale=gnu \ - --enable-languages=c,c++ \ - --disable-bootstrap \ + --enable-languages=c,c++,lto \ + --enable-bootstrap \ + --enable-checking=release \ --disable-werror \ --disable-libssp \ --disable-static \ + --with-system-zlib \ + --with-bugurl=http://bugtracker.ipfire.org \ $(CONFIGURE_ARGS) cd $(DIR_SRC)/gcc-build && make $(PARALLELISMFLAGS)