pkgsrc/audio/mt-daapd/patches/patch-ac
adrianp dbdf9f9259 0.2.4.2
Small bug fixes for port order on mdns advertisement on intel macs, playlists based on bitrate. Primarly, though, this release is to apply fix for CVE-2008-1771. Thanks to Nico Golde for bringing it to light.
0.2.4.1
Security updates for two DOS and one format string vulnerability.
2008-05-14 21:12:12 +00:00

30 lines
1.1 KiB
Text

$NetBSD: patch-ac,v 1.2 2008/05/14 21:12:12 adrianp Exp $
--- configure.orig 2008-04-19 21:17:12.000000000 +0100
+++ configure
@@ -3950,13 +3950,13 @@ if test $ac_cv_lib_c_r_pthread_creat = y
LDFLAGS="${LDFLAGS} -lc_r"
else
- { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
+ { echo "$as_me:$LINENO: checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
+echo $ECHO_N "checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... $ECHO_C" >&6; }
if test "${ac_cv_lib_pthread_pthread_create+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
@@ -4028,7 +4028,7 @@ fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
if test $ac_cv_lib_pthread_pthread_create = yes; then
- LDFLAGS="${LDFLAGS} -lpthread"
+ LDFLAGS="${LDFLAGS} ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
fi
fi