cc/gcc: do not build plugins for static toolchains 1.10
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Feb 22 23:27:42 2011 +0100 (2011-02-22)
branch1.10
changeset 2392578509ec492d
parent 2391 dc4c695cdcd9
child 2393 d59773c3574c
cc/gcc: do not build plugins for static toolchains

Plugins are shared objects, and when building a toolchain statically,
the gcc build system breaks havok (although there is no hard technical
reasons it should not be possible)...

And consequently, do not enable plugin supoprt in binutils.

Reported-by: Thomas Spurden <thomas@ado.is-a-geek.net>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 9139319423fd7d71017dfc974d3a06ab79e08fb8)
config/binutils/binutils.in
config/cc/gcc.in
     1.1 --- a/config/binutils/binutils.in	Mon Feb 21 14:39:24 2011 +0100
     1.2 +++ b/config/binutils/binutils.in	Tue Feb 22 23:27:42 2011 +0100
     1.3 @@ -168,6 +168,7 @@
     1.4      bool
     1.5      prompt "Enable support for plugins"
     1.6      depends on BINUTILS_HAS_PLUGINS
     1.7 +    depends on ! STATIC_TOOLCHAIN
     1.8      help
     1.9        binutils can be extended through the use of plugins.
    1.10        Especially, gold can use the lto-plugin, as installed
     2.1 --- a/config/cc/gcc.in	Mon Feb 21 14:39:24 2011 +0100
     2.2 +++ b/config/cc/gcc.in	Tue Feb 22 23:27:42 2011 +0100
     2.3 @@ -182,6 +182,7 @@
     2.4  config CC_GCC_ENABLE_PLUGINS
     2.5      bool
     2.6      depends on BINUTILS_PLUGINS
     2.7 +    depends on ! STATIC_TOOLCHAIN
     2.8      default y
     2.9  
    2.10  # If binutils installs gold, enable support for gold in gcc