cc/gcc: do not build plugins for static toolchains
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Feb 22 23:27:42 2011 +0100 (2011-02-22)
changeset 23169139319423fd
parent 2315 0c0734c5d62c
child 2317 6d21330d6db0
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>
config/binutils/binutils.in
config/cc/gcc.in
     1.1 --- a/config/binutils/binutils.in	Mon Feb 21 23:42:20 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 23:42:20 2011 +0100
     2.2 +++ b/config/cc/gcc.in	Tue Feb 22 23:27:42 2011 +0100
     2.3 @@ -195,6 +195,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