From c8d7d79e20f83e3ca268b0c302263a8c6660bd8a Mon Sep 17 00:00:00 2001 From: Jasmin Jessich Date: Sat, 15 Oct 2016 19:56:23 +0200 Subject: Added new gcc config option CC_GCC_CONFIG_TLS Adding new tristate configuration for TLS (Thread Local Storage) to add "--enable-tls" (y), "--disable-tls" (n) or nothing (m). Signed-off-by: Jasmin Jessich --- scripts/build/cc/100-gcc.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'scripts/build/cc') diff --git a/scripts/build/cc/100-gcc.sh b/scripts/build/cc/100-gcc.sh index 48f51220..81ef5230 100644 --- a/scripts/build/cc/100-gcc.sh +++ b/scripts/build/cc/100-gcc.sh @@ -555,6 +555,12 @@ do_gcc_core_backend() { extra_config+=("--with-system-zlib") fi + case "${CT_CC_GCC_CONFIG_TLS}" in + y) extra_config+=("--enable-tls");; + m) ;; + "") extra_config+=("--disable-tls");; + esac + # Some versions of gcc have a defective --enable-multilib. # Since that's the default, only pass --disable-multilib. For multilib, # also enable multiarch. Without explicit --enable-multiarch, pass-1 @@ -1077,6 +1083,12 @@ do_gcc_backend() { extra_config+=("--with-system-zlib") fi + case "${CT_CC_GCC_CONFIG_TLS}" in + y) extra_config+=("--enable-tls");; + m) ;; + "") extra_config+=("--disable-tls");; + esac + # Some versions of gcc have a defective --enable-multilib. # Since that's the default, only pass --disable-multilib. if [ "${CT_MULTILIB}" != "y" ]; then -- cgit v1.2.3