libc/eglibc: fix building for seemingly native toolchains
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Oct 02 22:10:17 2009 +0200 (2009-10-02)
changeset 15526ee673ab382e
parent 1551 8c40b842e798
child 1553 f1e9a86607bd
libc/eglibc: fix building for seemingly native toolchains

Build eglibc with -O2 as a fix/workaround to building
seemingly-native toolchains (see docs/overview.txt).

See:
- docs/overview.txt
- docs/known-issues.txt
- http://sourceware.org/ml/crossgcc/2009-10/msg00001.html
scripts/build/libc/eglibc.sh
     1.1 --- a/scripts/build/libc/eglibc.sh	Fri Oct 02 22:10:38 2009 +0200
     1.2 +++ b/scripts/build/libc/eglibc.sh	Fri Oct 02 22:10:17 2009 +0200
     1.3 @@ -252,7 +252,7 @@
     1.4      CT_DoLog DEBUG "Extra CC args passed    : '${extra_cc_args}'"
     1.5  
     1.6      BUILD_CC="${CT_BUILD}-gcc"                                      \
     1.7 -    CFLAGS="${CT_TARGET_CFLAGS} ${CT_LIBC_GLIBC_EXTRA_CFLAGS} -O"   \
     1.8 +    CFLAGS="${CT_TARGET_CFLAGS} ${CT_LIBC_GLIBC_EXTRA_CFLAGS} -O2"  \
     1.9      CC="${CT_TARGET}-gcc ${CT_LIBC_EXTRA_CC_ARGS} ${extra_cc_args}" \
    1.10      AR=${CT_TARGET}-ar                                              \
    1.11      RANLIB=${CT_TARGET}-ranlib                                      \