summaryrefslogtreecommitdiff
path: root/scripts/build/cc
diff options
context:
space:
mode:
authorJasmin Jessich <jasmin@anw.at>2016-10-15 17:56:23 (GMT)
committerJasmin Jessich <jasmin@anw.at>2017-02-21 08:10:22 (GMT)
commitc8d7d79e20f83e3ca268b0c302263a8c6660bd8a (patch)
tree93d88978837033505dc54753f5fd869b2953414d /scripts/build/cc
parent21cde9473e8a901c990ccedf25b73c109094694a (diff)
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 <jasmin@anw.at>
Diffstat (limited to 'scripts/build/cc')
-rw-r--r--scripts/build/cc/100-gcc.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/build/cc/100-gcc.sh b/scripts/build/cc/100-gcc.sh
index 48f5122..81ef523 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