Bug 778414. Fix clang builds on OpenBSD/i386. r=glandium
authorLandry Breuil <landry@openbsd.org>
Mon, 30 Jul 2012 17:57:04 +0200
changeset 100881 efc3fb215b231e1335277bd0d359668b2a488da6
parent 100880 5f72d5754b42a7442e479007f5a26402d512a75d
child 100882 54a8f77d3d26c2c16f79af84036f2f2ca9530565
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersglandium
bugs778414
milestone17.0a1
Bug 778414. Fix clang builds on OpenBSD/i386. r=glandium
config/system-headers
configure.in
js/src/config/system-headers
--- a/config/system-headers
+++ b/config/system-headers
@@ -641,18 +641,20 @@ share.h
 shellapi.h
 shlguid.h
 shlobj.h
 sigcontext.h
 signal.h
 SimpleGameSound.h
 SIOUX.h
 size_t.h
+sndio.h
 someincludefile.h
 Sound.h
+soundcard.h
 sqlite3.h
 ssdef.h
 sslerr.h
 ssl.h
 sslproto.h
 sstream
 stack
 StandardFile.h
--- a/configure.in
+++ b/configure.in
@@ -3616,23 +3616,27 @@ AC_CACHE_CHECK(for __thread keyword for 
                             ac_cv_thread_keyword=yes,
                             ac_cv_thread_keyword=no)])
 LDFLAGS=$_SAVE_LDFLAGS
 # The custom dynamic linker doesn't support TLS variables
 MOZ_TLS=
 if test "$ac_cv_thread_keyword" = yes -a "$MOZ_LINKER" != 1; then
   # mips builds fail with TLS variables because of a binutils bug.
   # See bug 528687
+  # OpenBSD doesn't have TLS support, and the test succeeds with clang++
   case "${target}" in
     mips*-*)
       :
       ;;
     *-android*|*-linuxandroid*)
       :
       ;;
+    *-openbsd*)
+      :
+      ;;
     *)
       AC_DEFINE(HAVE_THREAD_TLS_KEYWORD)
       MOZ_TLS=1
       ;;
   esac
 fi
 
 dnl Using the custom linker on ARMv6 requires 16k alignment of ELF segments.
--- a/js/src/config/system-headers
+++ b/js/src/config/system-headers
@@ -641,18 +641,20 @@ share.h
 shellapi.h
 shlguid.h
 shlobj.h
 sigcontext.h
 signal.h
 SimpleGameSound.h
 SIOUX.h
 size_t.h
+sndio.h
 someincludefile.h
 Sound.h
+soundcard.h
 sqlite3.h
 ssdef.h
 sslerr.h
 ssl.h
 sslproto.h
 sstream
 stack
 StandardFile.h