32 lines
1017 B
Plaintext
32 lines
1017 B
Plaintext
$OpenBSD: patch-configure,v 1.3 2012/04/03 16:37:42 sthen Exp $
|
|
|
|
use '-pthread' instead of '-lpthread'
|
|
|
|
--- configure.orig Thu Feb 2 21:24:20 2012
|
|
+++ configure Fri Mar 30 21:27:25 2012
|
|
@@ -5912,12 +5912,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
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
ac_cv_search_pthread_create=$ac_res
|
|
@@ -6261,7 +6261,7 @@ $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
|
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"
|