summaryrefslogtreecommitdiff
path: root/geography/gpsd/patches/patch-aa
blob: 0b5d8ea102a1b93b065b1279b071ac890ad7c0d5 (plain)
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
34
$NetBSD: patch-aa,v 1.5 2008/01/15 00:58:17 gdt Exp $

Not 100% sure about this, but it is not apparently fixed upstream.
I think we should have a configure.ac patch as well for regeneration.)


--- configure.orig	2008-01-01 13:44:00.000000000 -0500
+++ configure
@@ -25345,13 +25345,13 @@ if test $ac_cv_lib_c_open = yes; then
 fi
 
 
-{ echo "$as_me:$LINENO: checking for pthread_setcancelstate in -lpthread" >&5
-echo $ECHO_N "checking for pthread_setcancelstate in -lpthread... $ECHO_C" >&6; }
+{ echo "$as_me:$LINENO: checking for pthread_setcancelstate in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
+echo $ECHO_N "checking for pthread_setcancelstate in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... $ECHO_C" >&6; }
 if test "${ac_cv_lib_pthread_pthread_setcancelstate+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread  $LIBS"
+LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -25407,7 +25407,7 @@ fi
 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_setcancelstate" >&5
 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_setcancelstate" >&6; }
 if test $ac_cv_lib_pthread_pthread_setcancelstate = yes; then
-  LIBPTHREAD="-lpthread"
+  LIBPTHREAD="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
 
 cat >>confdefs.h <<\_ACEOF
 #define HAVE_LIBPTHREAD