diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-01-26 18:21:49 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-01-27 17:53:45 +0000 |
commit | ab058c4a3167fdc7cc5157572f348d6dc6725c98 (patch) | |
tree | 0d0753dab6569de71193c10da55790211d529819 | |
parent | 799cef5f9e5ef5049008fd4a3816d38f15fa6cb9 (diff) | |
download | dbus-ab058c4a3167fdc7cc5157572f348d6dc6725c98.tar.gz |
Opt-in to thread safety on Solaris
Alternatively, get a better C library. :-)
See also:
<http://lists.freedesktop.org/archives/dbus/2010-November/013796.html>,
<http://lists.freedesktop.org/archives/dbus/2010-December/013902.html>.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33464
Reviewed-by: Colin Walters <walters@verbum.org>
-rw-r--r-- | configure.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 9aeb1598..08bd962d 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 |