From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yqh4r-0005qR-JW for qemu-devel@nongnu.org; Fri, 08 May 2015 08:08:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yqh4p-00042D-Sf for qemu-devel@nongnu.org; Fri, 08 May 2015 08:08:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yqh4p-00041H-KG for qemu-devel@nongnu.org; Fri, 08 May 2015 08:08:23 -0400 From: Paolo Bonzini Date: Fri, 8 May 2015 14:07:52 +0200 Message-Id: <1431086881-17922-8-git-send-email-pbonzini@redhat.com> In-Reply-To: <1431086881-17922-1-git-send-email-pbonzini@redhat.com> References: <1431086881-17922-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 07/16] configure: require __thread support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Emilio G. Cota" From: "Emilio G. Cota" 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 Signed-off-by: Paolo Bonzini --- configure | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure b/configure index 75a4def..40bc49a 100755 --- a/configure +++ b/configure @@ -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) -- 2.3.5