From f91f10bcf844e184d03d17f70e4190a3d03ecc7b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 26 Jan 2011 18:21:49 +0000 Subject: [PATCH 1/2] Opt-in to thread safety on Solaris Alternatively, get a better C library. :-) Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33464 --- configure.in | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 9aeb159..08bd962 100644 --- a/configure.in +++ b/configure.in @@ -1307,11 +1307,10 @@ AC_SUBST(SECTION_FLAGS) AC_SUBST(SECTION_LDFLAGS) AC_MSG_RESULT($ac_gcsections) -# Add -D_POSIX_PTHREAD_SEMANTICS if on Solaris -# case $host_os in solaris*) - CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS" ;; + # Solaris' C library apparently needs these runes to be threadsafe... + CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT" esac changequote(,)dnl -- 1.7.2.3