freebsd-ports/devel/glib20/files/patch-ae

26 lines
751 B
Text
Raw Normal View History

$FreeBSD$
--- configure.orig Fri Mar 8 17:54:21 2002
+++ configure Mon Mar 11 10:21:32 2002
@@ -16768,8 +16768,8 @@
rm -f conftest.$ac_objext conftest.$ac_ext
2000-11-20 19:01:06 +01:00
fi
;;
- *-freebsd2.2*)
2001-08-01 19:50:36 +02:00
- G_THREAD_CFLAGS="$G_THREAD_CFLAGS -D_THREAD_SAFE"
2000-11-20 19:01:06 +01:00
+ *-freebsd*)
2001-08-01 19:50:36 +02:00
+ G_THREAD_CFLAGS="$G_THREAD_CFLAGS $PTHREAD_CFLAGS"
2000-11-20 19:01:06 +01:00
# FreeBSD 2.2.x shiped with gcc 2.7.2.x, which doesn't support
2001-08-01 19:50:36 +02:00
# -mthreads flag.
@@ -16849,7 +16849,7 @@
*-*-openbsd* | *-*-freebsd*)
# FreeBSD and OpenBSD want us to use the -pthread flag
# instead of linking to -lc_r and libtool enforces that.
- G_THREAD_LIBS="-pthread"
+ G_THREAD_LIBS="$PTHREAD_LIBS"
2001-08-01 19:50:36 +02:00
;;
*)
for thread_lib in "" pthread pthread32 pthreads thread dce; do