From: Simon McVittie Date: Wed, 26 Jan 2011 18:21:49 +0000 (+0000) Subject: Opt-in to thread safety on Solaris X-Git-Tag: dbus-1.4.4~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab058c4a3167fdc7cc5157572f348d6dc6725c98;p=platform%2Fupstream%2Fdbus.git 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 --- 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