# HG changeset patch # User Christophe Lincoln # Date 1305849057 -7200 # Node ID 5a24b1cc7c00498444356fa7029f7cd2a95537ee # Parent cc4ff3002e6ab787c1764284f6f8abeabf5578f7 gcc: use CONFIGURE_ARGS so we can cross compile from --build system for --host system (Tank: i686 --> i486) diff -r cc4ff3002e6a -r 5a24b1cc7c00 gcc/receipt --- a/gcc/receipt Fri May 20 01:21:08 2011 +0200 +++ b/gcc/receipt Fri May 20 01:50:57 2011 +0200 @@ -112,7 +112,7 @@ compile_rules() { cd $src - + # Package slitaz-toolchain use 'cook --options' when rebuilding # the full SliTaz toolchain. [ "$2" == "--first-pass" ] && opt=$2 @@ -131,15 +131,13 @@ --libexecdir=/usr/lib \ --disable-nls \ --enable-shared \ - --enable-languages=c \ + --enable-languages=c,c++ \ --disable-multilib \ --disable-libstdcxx-pch \ --enable-__cxa_atexit \ --enable-clocale=gnu \ --enable-threads=posix \ - --build=$BUILD_HOST \ - --host=$BUILD_HOST \ - --target=$BUILD_HOST && + $CONFIGURE_ARGS && make && make install ;; *) # Used by default to produce a full featured GCC compiler. @@ -156,9 +154,7 @@ --enable-lto \ --enable-threads=posix \ --with-tune=$ARCH \ - --build=$BUILD_HOST \ - --host=$BUILD_HOST \ - --target=$BUILD_HOST && + $CONFIGURE_ARGS && make && make install ;; esac }