diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-01-28 17:53:37 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-01-28 17:53:37 (GMT) |
commit | adbf0ff180e2f2f53a635eb2287ab2b2497e5a0d (patch) | |
tree | 9c0ec0e03d905a0e5bec0a5a9af91d55860b861d /config/cc/gcc.in.2 | |
parent | a2e31b9c53a6abc4cb58297016331255056f969e (diff) |
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 'config/cc/gcc.in.2')
-rw-r--r-- | config/cc/gcc.in.2 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2 index 9e08689..642ea5b 100644 --- a/config/cc/gcc.in.2 +++ b/config/cc/gcc.in.2 @@ -24,6 +24,14 @@ config CC_GCC_USE_GRAPHITE On some systems (eg. Cygwin), PPL and/or CLooG may not build properly (yet), so you'll have to say 'N' here. +# The way LTO works is a bit twisted. +# See: http://gcc.gnu.org/wiki/LinkTimeOptimization#Requirements +# Basically: +# - if binutils has plugins: LTO is handled by ld/gold by loading +# the plugin when linking +# - if binutils does not have plugins: LTO is handled by collect2 +# In any case, LTO support does not depend on plugins, but takes +# advantage of it config CC_GCC_USE_LTO bool prompt "Enable LTO" |