mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-27 05:50:56 -04:00
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
$NetBSD: patch-aa,v 1.1 2006/05/12 09:19:54 joerg Exp $
|
|
|
|
--- configure.orig 2006-05-12 09:05:13.000000000 +0000
|
|
+++ configure
|
|
@@ -3754,14 +3754,14 @@ EOF
|
|
;;
|
|
esac
|
|
|
|
-echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
|
|
-echo "configure:3759: checking for pthread_create in -lpthread" >&5
|
|
+echo $ac_n "checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}""... $ac_c" 1>&6
|
|
+echo "configure:3759: checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
|
|
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
-LIBS="-lpthread $LIBS"
|
|
+LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3767 "configure"
|
|
#include "confdefs.h"
|
|
@@ -3795,7 +3795,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_l
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
- LIBS="-lpthread $LIBS"
|
|
+ LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|