scripts/build/cc/gcc.sh
changeset 2248 4ea8e6d381f0
parent 2212 a2f4986779bf
child 2275 9ab4392430ad
     1.1 --- a/scripts/build/cc/gcc.sh	Thu Dec 09 18:55:59 2010 +0100
     1.2 +++ b/scripts/build/cc/gcc.sh	Wed Dec 29 17:58:35 2010 +0100
     1.3 @@ -481,6 +481,16 @@
     1.4          "") extra_config+=("--without-long-double-128");;
     1.5      esac
     1.6  
     1.7 +    # If LTO is selected and binutils has gold, then enable
     1.8 +    # building the lto plugin with the --enable-gold option,
     1.9 +    # but only if gold has support for plugins.
    1.10 +    if [    "${CT_BINUTILS_GOLD_INSTALLED}" = "y"   \
    1.11 +         -a "${CT_BINUTILS_GOLD_PLUGINS}" = "y"     \
    1.12 +         -a "${CT_CC_GCC_USE_LTO}" = "y"            \
    1.13 +       ]; then
    1.14 +        extra_config+=( --enable-gold )
    1.15 +    fi
    1.16 +
    1.17      CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
    1.18  
    1.19      # --enable-symvers=gnu really only needed for sh4 to work around a