scripts/build/cc/gcc.sh
changeset 1972 7939e7e0573d
parent 1926 e6a9a4f36645
child 1979 22ce0c19f06a
     1.1 --- a/scripts/build/cc/gcc.sh	Fri Apr 09 21:04:37 2010 +0200
     1.2 +++ b/scripts/build/cc/gcc.sh	Mon May 24 16:34:55 2010 +0200
     1.3 @@ -171,6 +171,10 @@
     1.4          extra_config+=("--with-libelf=${CT_COMPLIBS_DIR}")
     1.5      fi
     1.6  
     1.7 +    if [ "${CT_CC_GCC_ENABLE_TARGET_OPTSPACE}" = "y" ]; then
     1.8 +        extra_config+=("--enable-target-optspace")
     1.9 +    fi
    1.10 +
    1.11      CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
    1.12  
    1.13      # Use --with-local-prefix so older gccs don't look in /usr/local (http://gcc.gnu.org/PR10532)
    1.14 @@ -190,7 +194,6 @@
    1.15          --disable-nls                               \
    1.16          --enable-symvers=gnu                        \
    1.17          --enable-languages="${lang_opt}"            \
    1.18 -        --enable-target-optspace                    \
    1.19          ${CT_CC_CORE_EXTRA_CONFIG}
    1.20  
    1.21      if [ "${build_libgcc}" = "yes" ]; then
    1.22 @@ -355,6 +358,10 @@
    1.23          extra_config+=("--enable-threads=posix")
    1.24      fi
    1.25  
    1.26 +    if [ "${CT_CC_GCC_ENABLE_TARGET_OPTSPACE}" = "y" ]; then
    1.27 +        extra_config+=("--enable-target-optspace")
    1.28 +    fi
    1.29 +
    1.30      CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
    1.31  
    1.32      # --enable-symvers=gnu really only needed for sh4 to work around a
    1.33 @@ -380,7 +387,6 @@
    1.34          --enable-symvers=gnu                        \
    1.35          --enable-c99                                \
    1.36          --enable-long-long                          \
    1.37 -        --enable-target-optspace                    \
    1.38          ${CT_CC_EXTRA_CONFIG}
    1.39  
    1.40      if [ "${CT_CANADIAN}" = "y" ]; then