diff options
author | kris <kris@FreeBSD.org> | 2004-10-07 16:00:44 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2004-10-07 16:00:44 +0000 |
commit | 9e4c5410240ff27606dd602e13442463e2eb425b (patch) | |
tree | 01198962af26bad7aa0deee80da9a68be61ad38b | |
parent | a9d3a7e4eb421474094de9519bd11de50f3f8878 (diff) | |
download | FreeBSD-ports-9e4c5410240ff27606dd602e13442463e2eb425b.zip FreeBSD-ports-9e4c5410240ff27606dd602e13442463e2eb425b.tar.gz |
Respect PTHREAD_{CFLAGS,LIBS} on 5.x and beyond.
Submitted by: marcus
Approved by: portmgr (self)
-rw-r--r-- | www/oops/files/patch-configure.in | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/www/oops/files/patch-configure.in b/www/oops/files/patch-configure.in index 5106642..465217c 100644 --- a/www/oops/files/patch-configure.in +++ b/www/oops/files/patch-configure.in @@ -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 |