1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/sysutils/hourglass/files/patch-configure
Craig Rodrigues bfb17f6834 PR: 108154
- respect PTHREAD_LIBS and PTHREAD_CFLAGS
- add WITH_LINUXTHREADS tunable to override PTHREAD_LIBS and PTHREAD_CFLAGS
  with linuxthreads port
2007-01-20 17:30:40 +00:00

32 lines
765 B
Plaintext

--- configure.orig Thu Oct 9 20:19:54 2003
+++ configure Mon Apr 12 16:14:58 2004
@@ -3114,7 +3114,6 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
@@ -3161,7 +3160,6 @@
#define HAVE_LIBPTHREAD 1
_ACEOF
- LIBS="-lpthread $LIBS"
fi
@@ -3994,8 +3992,10 @@
on_unix='yes' ;
on_windows='no' ;;
*freebsd*)
- LDFLAGS='-llthread -llgcc_r -L/usr/local/lib' ;
- CFLAGS='-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads' ;
+ CFLAGS_sav=$CFLAGS ;
+ LDFLAGS_sav=$LDFLAGS ;
+ LDFLAGS="$LDFLAGS_sav %PTHREAD_LIBS%" ;
+ CFLAGS="$CFLAGS_sav %PTHREAD_CFLAGS%" ;
on_unix='yes' ;
on_windows='no' ;;
*cygwin*)