From 536170bf6ecb6cec1d08eb48af5d6932d95fef41 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Tue, 18 Mar 2008 01:09:37 +0200 Subject: [PATCH] glibc: Check if the length of $tls_arch is non-zero before injecting "libc_cv_${tls_arch}_tls=yes" --- base/glibc/glibc.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base/glibc/glibc.conf b/base/glibc/glibc.conf index 88d2b123b..902bc8bfa 100644 --- a/base/glibc/glibc.conf +++ b/base/glibc/glibc.conf @@ -77,7 +77,10 @@ if [ $SDECFG_PKG_GLIBC_TLS = 1 ]; then tls_arch=x86_64 ;; esac - var_append configcache ' ' "libc_cv_${tls_arch}_tls=yes" + if [ -n "$tls_arch" ]; then + var_append configcache ' ' \ + "libc_cv_${tls_arch}_tls=yes" + fi else # extra configure options for cross stage var_append extraconfopt " " "--with-tls"