binutils/binutils: add support for plugins
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jan 02 13:56:05 2011 +0100 (2011-01-02)
changeset 2245a6d790bc17af
parent 2244 dc2d2342e4a9
child 2246 c69f8ef4bc7c
binutils/binutils: add support for plugins

Add an option to enable plugins support in binutils.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
config/binutils/binutils.in
scripts/build/binutils/binutils.sh
     1.1 --- a/config/binutils/binutils.in	Tue Dec 28 00:11:33 2010 +0100
     1.2 +++ b/config/binutils/binutils.in	Sun Jan 02 13:56:05 2011 +0100
     1.3 @@ -62,10 +62,14 @@
     1.4  config BINUTILS_2_21_or_later
     1.5      bool
     1.6      select BINUTILS_HAS_GOLD
     1.7 +    select BINUTILS_HAS_PLUGINS
     1.8  
     1.9  config BINUTILS_HAS_GOLD
    1.10      bool
    1.11  
    1.12 +config BINUTILS_HAS_PLUGINS
    1.13 +    bool
    1.14 +
    1.15  if BINUTILS_HAS_GOLD
    1.16  
    1.17  choice
    1.18 @@ -128,6 +132,15 @@
    1.19  
    1.20  endif # BINUTILS_HAS_GOLD
    1.21  
    1.22 +config BINUTILS_PLUGINS
    1.23 +    bool
    1.24 +    prompt "Enable support for plugins"
    1.25 +    depends on BINUTILS_HAS_PLUGINS
    1.26 +    help
    1.27 +      binutils can be extended through the use of plugins.
    1.28 +      Especially, gold can use the lto-plugin, as installed
    1.29 +      by gcc, to handle LTO.
    1.30 +
    1.31  config BINUTILS_EXTRA_CONFIG
    1.32      string
    1.33      prompt "binutils extra config"
     2.1 --- a/scripts/build/binutils/binutils.sh	Tue Dec 28 00:11:33 2010 +0100
     2.2 +++ b/scripts/build/binutils/binutils.sh	Sun Jan 02 13:56:05 2011 +0100
     2.3 @@ -43,6 +43,9 @@
     2.4                  ;;
     2.5          esac
     2.6      fi
     2.7 +    if [ "${CT_BINUTILS_PLUGINS}" = "y" ]; then
     2.8 +        extra_config+=( --enable-plugins )
     2.9 +    fi
    2.10  
    2.11      CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
    2.12