summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2005-10-11 02:18:36 +0000
committerEric Anholt <anholt@freebsd.org>2005-10-11 02:18:36 +0000
commit8ee5c1429af98206e05a0536f87c0f21a529cdf0 (patch)
tree1a8b3b4b757168633edbcd10d8a54a23d748b8d1
parent41ff3b9d1f194a7b56437b650d5f589225c078c6 (diff)
Add appropriate pthread libs/flags for FreeBSD, fixing the build of ico and probably others.
-rw-r--r--ChangeLog6
-rw-r--r--configure.ac3
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8afa509..abe9f33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-10-10 Eric Anholt <anholt@FreeBSD.org>
+
+ * configure.ac:
+ Add appropriate pthread libs/flags for FreeBSD, fixing the build of ico
+ and probably others.
+
2005-10-07 Kevin E. Martin <kem-at-freedesktop-dot-org>
* nls/Makefile.am:
diff --git a/configure.ac b/configure.ac
index 4e8533b..bd84d93 100644
--- a/configure.ac
+++ b/configure.ac
@@ -163,6 +163,9 @@ if test x$xthreads == xyes ; then
case $host_os in
linux*|openbsd*)
XTHREADLIB=-lpthread ;;
+ freebsd*)
+ XTHREAD_CFLAGS="-D_THREAD_SAFE"
+ XTHREADLIB="-pthread" ;;
solaris*)
XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
esac