opnsense-ports/devel/libdispatch/files/patch-configure.ac
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

22 lines
464 B
Text

--- configure.ac.orig 2011-09-08 23:48:16.000000000 -0700
+++ configure.ac 2011-09-08 23:48:28.000000000 -0700
@@ -137,7 +137,18 @@
# Find libraries we will need
#
AC_SEARCH_LIBS(clock_gettime, rt)
-AC_SEARCH_LIBS(pthread_create, pthread)
+
+#
+# Find how to enable threads
+#
+case $host in
+*freebsd*)
+ LIBS="${LIBS} -pthread"
+ ;;
+*)
+ AC_SEARCH_LIBS(pthread_create, pthread)
+ ;;
+esac
#
# Prefer native kqueue(2); otherwise use libkqueue if present.