diff --git a/www/oops/files/patch-configure.in b/www/oops/files/patch-configure.in index 5106642221b5..465217ca4492 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