cc/gcc: add an option to enable/disable build of libssp
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Oct 09 11:38:04 2010 +0200 (2010-10-09)
changeset 21463b812ba8d001
parent 2145 efea409ff8be
child 2147 0ec4491d6496
cc/gcc: add an option to enable/disable build of libssp

libssp is the run-time Stack-Smashing Protection library.
It can be usefull to have or miss, depends...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
config/cc/gcc.in.2
scripts/build/cc/gcc.sh
     1.1 --- a/config/cc/gcc.in.2	Fri Oct 08 23:58:58 2010 +0200
     1.2 +++ b/config/cc/gcc.in.2	Sat Oct 09 11:38:04 2010 +0200
     1.3 @@ -74,6 +74,15 @@
     1.4        
     1.5        The default is 'N'. Say 'Y' if you need it, and report success/failure.
     1.6  
     1.7 +config CC_GCC_LIBSSP
     1.8 +    bool
     1.9 +    prompt "Compile libssp"
    1.10 +    default n
    1.11 +    help
    1.12 +      libssp is the run-time Stack-Smashing Protection library.
    1.13 +      
    1.14 +      The default is 'N'. Say 'Y' if you need it, and report success/failure.
    1.15 +
    1.16  #-----------------------------------------------------------------------------
    1.17  
    1.18  comment "Misc. obscure options."
     2.1 --- a/scripts/build/cc/gcc.sh	Fri Oct 08 23:58:58 2010 +0200
     2.2 +++ b/scripts/build/cc/gcc.sh	Sat Oct 09 11:38:04 2010 +0200
     2.3 @@ -376,6 +376,11 @@
     2.4      else
     2.5          extra_config+=(--disable-libgomp)
     2.6      fi
     2.7 +    if [ "${CT_CC_GCC_LIBSSP}" = "y" ]; then
     2.8 +        extra_config+=(--enable-libssp)
     2.9 +    else
    2.10 +        extra_config+=(--disable-libssp)
    2.11 +    fi
    2.12  
    2.13      if [ "${CT_CC_STATIC_LIBSTDCXX}" = "y" ]; then
    2.14          # this is from CodeSourcery arm-2010q1-202-arm-none-linux-gnueabi.src.tar.bz2