# HG changeset patch # User Christopher Rogers # Date 1306244483 0 # Node ID f7fe51b9dfaefba1855beb56f8af8ffb4afc903f # Parent 54b7fcf80cbb1e34f926471abe01689e97365b96 glibc: Replaced $BUILD_HOST with $HOST_SYSTEM. diff -r 54b7fcf80cbb -r f7fe51b9dfae glibc/receipt --- a/glibc/receipt Tue May 24 13:39:17 2011 +0000 +++ b/glibc/receipt Tue May 24 13:41:23 2011 +0000 @@ -28,23 +28,27 @@ # glibc no longer support i386, so use -march=i486 for better compatibility. # If i686 ??? + unset CFLAGS CXXFLAGS case $ARCH in - i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;; + i386|i486) + echo "CFLAGS += -O2 -march=i486 -mtune=native" > configparms ;; + *) + echo "CFLAGS += -O2 -march=$ARCH -mtune=native" > configparms ;; esac { $src/configure \ - --host=$BUILD_HOST \ + --host=$HOST_SYSTEM \ --build=$($src/scripts/config.guess) \ --disable-profile --enable-add-ons \ - --enable-kernel=2.6.22.5 --with-headers=/tools/include \ + --enable-kernel=2.6.30 --with-headers=/tools/include \ libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes && make && make install } || return 1 # Link compiler to this new glibc. - SPECS=`dirname $($BUILD_HOST-gcc -print-libgcc-file-name)`/specs - $BUILD_HOST-gcc -dumpspecs | sed \ + SPECS=`dirname $($HOST_SYSTEM-gcc -print-libgcc-file-name)`/specs + $HOST_SYSTEM-gcc -dumpspecs | sed \ -e 's@/lib\(64\)\?/ld@/tools&@g' \ -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS unset SPECS