cc/gcc: remove --enable-symver option
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jun 28 23:46:04 2011 +0200 (2011-06-28)
changeset 2519b24ead1a5947
parent 2518 aa833630f29c
child 2520 e3523df95b6b
cc/gcc: remove --enable-symver option

That option is coming from the original crosstool, and is not entirely
understand here.

Moreover, it breaks with newer gcc-s: 4.6.1 now breaks while configuring
libjava (and probably some other libs as well, untested).

There is an related bug report to the gcc BZ:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49555

If need be, the old behavior can be restored with:
CC_CORE_EXTRA_CONFIG_ARRAY="--enable-symver=gnu"
CC_EXTRA_CONFIG_ARRAY="--enable-symver=gnu"

Reported-by: Bryan Hundven <bryanhundven@gmail.com>
Reviewed-by: Bryan Hundven <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/build/cc/gcc.sh
     1.1 --- a/scripts/build/cc/gcc.sh	Mon Jun 27 00:12:29 2011 +0200
     1.2 +++ b/scripts/build/cc/gcc.sh	Tue Jun 28 23:46:04 2011 +0200
     1.3 @@ -276,7 +276,6 @@
     1.4          ${CC_CORE_SYSROOT_ARG}                      \
     1.5          "${extra_config[@]}"                        \
     1.6          --disable-nls                               \
     1.7 -        --enable-symvers=gnu                        \
     1.8          --enable-languages="${lang_opt}"            \
     1.9          "${CT_CC_CORE_EXTRA_CONFIG_ARRAY[@]}"
    1.10  
    1.11 @@ -536,8 +535,6 @@
    1.12  
    1.13      CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
    1.14  
    1.15 -    # --enable-symvers=gnu really only needed for sh4 to work around a
    1.16 -    # detection problem only matters for gcc-3.2.x and later, I think.
    1.17      # --disable-nls to work around crash bug on ppc405, but also because
    1.18      # embedded systems don't really need message catalogs...
    1.19      CT_DoExecLog CFG                                \
    1.20 @@ -556,7 +553,6 @@
    1.21          "${extra_config[@]}"                        \
    1.22          --with-local-prefix="${CT_SYSROOT_DIR}"     \
    1.23          --disable-nls                               \
    1.24 -        --enable-symvers=gnu                        \
    1.25          --enable-c99                                \
    1.26          --enable-long-long                          \
    1.27          "${CT_CC_EXTRA_CONFIG_ARRAY[@]}"