2010-07-21 14:07:43 +00:00

32 lines
972 B
Plaintext

$OpenBSD: patch-configure,v 1.2 2010/07/21 14:07:43 landry Exp $
use '-pthread' instead of '-lpthread'
--- configure.orig Sun Nov 8 02:41:02 2009
+++ configure Wed Jul 21 16:06:24 2010
@@ -6733,12 +6733,12 @@ return pthread_create ();
return 0;
}
_ACEOF
-for ac_lib in '' pthread; do
+for ac_lib in pthread; do
if test -z "$ac_lib"; then
ac_res="none required"
else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ ac_res=-$ac_lib
+ LIBS="-$ac_lib $ac_func_search_save_LIBS"
fi
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
@@ -7819,7 +7819,7 @@ _ACEOF
elif test "$GCC" = "yes"
then
GCC_VERSION=`$CC -dumpversion`
- CFLAGS="$CFLAGS -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
+ CFLAGS="$CFLAGS -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations"
case $GCC_VERSION in
4.4.*)
CFLAGS="$CFLAGS -fno-strict-aliasing"