summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-01-26 18:21:49 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-01-27 17:53:45 +0000
commitab058c4a3167fdc7cc5157572f348d6dc6725c98 (patch)
tree0d0753dab6569de71193c10da55790211d529819
parent799cef5f9e5ef5049008fd4a3816d38f15fa6cb9 (diff)
downloaddbus-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.in5
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