summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-12-07 07:19:13 (GMT)
committerAlexey Neyman <stilor@att.net>2018-12-07 08:03:04 (GMT)
commite149e28e57de91cad96033047872d84e6938ea23 (patch)
treee1aaf2cccc82f1b5ce1b7a76232060f09f5e6dc6 /scripts
parent9d2a5f8413d397d189e67c80b7ebab2bd30d42ac (diff)
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')
-rw-r--r--scripts/build/libc/glibc.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh
index 4d44fea..312c88f 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