diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-01-28 18:53:37 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-01-28 18:53:37 +0100 |
commit | adbf0ff180e2f2f53a635eb2287ab2b2497e5a0d (patch) | |
tree | 9c0ec0e03d905a0e5bec0a5a9af91d55860b861d /scripts/build/cc | |
parent | a2e31b9c53a6abc4cb58297016331255056f969e (diff) | |
download | crosstool-ng-adbf0ff180e2f2f53a635eb2287ab2b2497e5a0d.tar.gz crosstool-ng-adbf0ff180e2f2f53a635eb2287ab2b2497e5a0d.tar.bz2 crosstool-ng-adbf0ff180e2f2f53a635eb2287ab2b2497e5a0d.zip |
cc/gcc: enable plugins if needed
Enabling plugins in binutils is not enough, and gcc also
needs to be ./configured with --enable-plugins, although
this is not documented anywhere... :-/
Reported-by: karthik duraisami <kdconstant@hotmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/build/cc')
-rw-r--r-- | scripts/build/cc/gcc.sh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index b00d1134..c0a87743 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -481,13 +481,10 @@ do_cc() { "") extra_config+=("--without-long-double-128");; esac - # If LTO is selected and binutils has gold, then enable - # building the lto plugin with the --enable-gold option, - # but only if gold has support for plugins. - if [ "${CT_BINUTILS_GOLD_INSTALLED}" = "y" \ - -a "${CT_BINUTILS_GOLD_PLUGINS}" = "y" \ - -a "${CT_CC_GCC_USE_LTO}" = "y" \ - ]; then + if [ "${CT_CC_GCC_ENABLE_PLUGINS}" = "y" ]; then + extra_config+=( --enable-plugin ) + fi + if [ "${CT_CC_GCC_GOLD}" = "y" ]; then extra_config+=( --enable-gold ) fi |