diff options
author | Alexey Neyman <stilor@att.net> | 2018-12-06 23:19:13 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-12-07 00:03:04 -0800 |
commit | e149e28e57de91cad96033047872d84e6938ea23 (patch) | |
tree | e1aaf2cccc82f1b5ce1b7a76232060f09f5e6dc6 /scripts/build/libc | |
parent | 9d2a5f8413d397d189e67c80b7ebab2bd30d42ac (diff) | |
download | crosstool-ng-e149e28e57de91cad96033047872d84e6938ea23.tar.gz crosstool-ng-e149e28e57de91cad96033047872d84e6938ea23.tar.bz2 crosstool-ng-e149e28e57de91cad96033047872d84e6938ea23.zip |
Disable -fstack-protector* from being used by glibc
... until it was fixed (to some extent) in 2.25.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/libc')
-rw-r--r-- | scripts/build/libc/glibc.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index 4d44fea9..312c88f1 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -185,6 +185,14 @@ glibc_backend_once() # Hide host C++ binary from configure echo "ac_cv_prog_ac_ct_CXX=${CT_TARGET}-g++" >>config.cache + # Until it became explicitly controllable with --enable-stack-protector=..., + # configure detected GCC support for -fstack-protector{,-strong} and + # tried to enable it in some parts of glibc - which then failed to build. + if [ -z "${CT_GLIBC_BUILD_SSP}" ]; then + echo "libc_cv_ssp=no" >>config.cache + echo "libc_cv_ssp_strong=no" >>config.cache + fi + if [ "${CT_GLIBC_FORCE_UNWIND}" = "y" ]; then echo "libc_cv_forced_unwind=yes" >>config.cache echo "libc_cv_c_cleanup=yes" >>config.cache |