From ab058c4a3167fdc7cc5157572f348d6dc6725c98 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 26 Jan 2011 18:21:49 +0000 Subject: [PATCH] Opt-in to thread safety on Solaris Alternatively, get a better C library. :-) See also: , . Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33464 Reviewed-by: Colin Walters --- configure.in | 5 ++--- 1 file 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 -- 2.7.4