1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

Respect PTHREAD_{CFLAGS,LIBS} on 5.x and beyond.

Submitted by:	marcus
Approved by:	portmgr (self)
This commit is contained in:
Kris Kennaway 2004-10-07 16:00:44 +00:00
parent fe3e9b0098
commit 02ef3c4695
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=118576

View File

@ -1,5 +1,5 @@
--- configure.in.orig Tue Oct 14 00:49:36 2003
+++ configure.in Mon Mar 15 03:38:44 2004
--- configure.in.orig Tue Oct 14 03:49:36 2003
+++ configure.in Mon Sep 27 14:52:41 2004
@@ -315,8 +315,7 @@
;;
@ -10,17 +10,23 @@
LIBS="$LEXLIB $LIBS"
if test "$large_files" = "yes" ; then
## FreeBSD need no any special flags for 64bit files
@@ -328,14 +327,14 @@
@@ -328,14 +327,20 @@
rel=`uname -r`
case "$rel" in
4*)
- CFLAGS="$CFLAGS -pthread"
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS $PTHREAD_LIBS"
;;
+ 5.[012]*)
+ LIBS="$PTHREAD_LIBS $LEXLIB $LIBS"
+ ;;
5*)
- LIBS="-lc_r $LEXLIB $LIBS"
+ LIBS="$PTHREAD_LIBS $LEXLIB $LIBS"
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS $PTHREAD_LIBS"
;;
+ 6*)
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS $PTHREAD_LIBS"
+ ;;
*)
- CFLAGS="$CFLAGS -pthread"
- LIBS="-lc_r $LEXLIB $LIBS"
@ -29,7 +35,7 @@
;;
esac
RPATH_OPTION="-rpath"
@@ -430,10 +429,10 @@
@@ -430,10 +435,10 @@
esac
if test "X$MYSQL_PATH" != "X" ; then