diff --git a/base/glibc/glibc.conf b/base/glibc/glibc.conf index 61cdc2fb3..7ec31f5c3 100644 --- a/base/glibc/glibc.conf +++ b/base/glibc/glibc.conf @@ -79,7 +79,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"