diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-10-09 11:38:04 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-10-09 11:38:04 +0200 |
commit | b17f8707c142be9ee65abf5b19fa9dcf16753590 (patch) | |
tree | f553d422805040a10d6c13b4e15a76433c9b8510 | |
parent | 8922def6b4acf6a6adb77770ef55b164278aea77 (diff) | |
download | crosstool-ng-b17f8707c142be9ee65abf5b19fa9dcf16753590.tar.gz crosstool-ng-b17f8707c142be9ee65abf5b19fa9dcf16753590.tar.bz2 crosstool-ng-b17f8707c142be9ee65abf5b19fa9dcf16753590.zip |
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>
-rw-r--r-- | config/cc/gcc.in.2 | 9 | ||||
-rw-r--r-- | scripts/build/cc/gcc.sh | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2 index 00e53921..a87b3888 100644 --- a/config/cc/gcc.in.2 +++ b/config/cc/gcc.in.2 @@ -74,6 +74,15 @@ config CC_GCC_LIBGOMP The default is 'N'. Say 'Y' if you need it, and report success/failure. +config CC_GCC_LIBSSP + bool + prompt "Compile libssp" + default n + help + libssp is the run-time Stack-Smashing Protection library. + + The default is 'N'. Say 'Y' if you need it, and report success/failure. + #----------------------------------------------------------------------------- comment "Misc. obscure options." diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 4d78eabd..db91f869 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -376,6 +376,11 @@ do_cc() { else extra_config+=(--disable-libgomp) fi + if [ "${CT_CC_GCC_LIBSSP}" = "y" ]; then + extra_config+=(--enable-libssp) + else + extra_config+=(--disable-libssp) + fi if [ "${CT_CC_STATIC_LIBSTDCXX}" = "y" ]; then # this is from CodeSourcery arm-2010q1-202-arm-none-linux-gnueabi.src.tar.bz2 |