diff options
author | Emilio G. Cota <cota@braap.org> | 2015-04-29 13:09:02 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-05-08 12:30:13 +0200 |
commit | 768b7855c86c4f46b605183ae9451e9af64ca288 (patch) | |
tree | 3d59fa7f6cf3f1e0e2ee89f7082e5f591c1f8013 | |
parent | 41063e1e7afcb2f13e103720fe96221657f5dbbc (diff) |
configure: require __thread support
The codebase doesn't build without __thread support.
Formalise this requirement by adding a check for it in the
configure script.
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1556,6 +1556,17 @@ if test "$static" = "yes" ; then fi fi +# Unconditional check for compiler __thread support + cat > $TMPC << EOF +static __thread int tls_var; +int main(void) { return tls_var; } +EOF + +if ! compile_prog "-Werror" "" ; then + error_exit "Your compiler does not support the __thread specifier for " \ + "Thread-Local Storage (TLS). Please upgrade to a version that does." +fi + if test "$pie" = ""; then case "$cpu-$targetos" in i386-Linux|x86_64-Linux|x32-Linux|i386-OpenBSD|x86_64-OpenBSD) |