summaryrefslogtreecommitdiff
path: root/devel/glib20/files/patch-ae
blob: fc794d3256de0ce42636110577226541f565bd52 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$FreeBSD$

--- configure.orig	Fri Mar 29 01:26:14 2002
+++ configure	Fri Apr 26 09:01:50 2002
@@ -10597,6 +10597,7 @@
 
 # This can be used to rebuild libtool when needed
 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
 
 # Always use our own libtool.
 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
@@ -17619,8 +17620,8 @@
 rm -f conftest.$ac_objext conftest.$ac_ext
 		fi
 		;;
-	*-freebsd2.2*)
-		G_THREAD_CFLAGS="$G_THREAD_CFLAGS -D_THREAD_SAFE"
+	*-freebsd*)
+		G_THREAD_CFLAGS="$G_THREAD_CFLAGS $PTHREAD_CFLAGS"
 
 		# FreeBSD 2.2.x shiped with gcc 2.7.2.x, which doesn't support
 		# -mthreads flag.
@@ -17702,7 +17703,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"
 		;;
              *)
 		for thread_lib in "" pthread pthread32 pthreads thread dce; do