openbsd-ports/net/opal/patches/patch-configure
2010-05-31 06:31:39 +00:00

33 lines
1.2 KiB
Plaintext

$OpenBSD: patch-configure,v 1.3 2010/05/31 06:31:39 ajacoutot Exp $
--- configure.orig Thu May 27 08:53:06 2010
+++ configure Mon May 31 07:28:46 2010
@@ -4471,7 +4471,7 @@ fi
WFLAGS=
if test "x$ac_cv_c_compiler_gnu" = xyes; then
if test ${GXX_MAJOR} -lt 4 ; then
- WFLAGS="-Wall -Wextra -Wstrict-aliasing=2 -Wfloat-equal -Wno-comment -Wno-unused"
+ WFLAGS="-Wall -Wfloat-equal -Wno-comment -Wno-unused"
else
WFLAGS="-Wall -Wextra -Winit-self -Wstrict-aliasing=2 -Wfloat-equal -Wno-comment -Wno-missing-field-initializers -Wno-unused"
@@ -5106,7 +5106,7 @@ STDCCFLAGS="$STDCCFLAGS -D__MACOSX__"
- LDSOOPTS="-shared -Wl,-soname,\$(LIB_FILENAME_SHARED_PAT)"
+ LDSOOPTS="-shared -fPIC -Wl,-soname,\$(LIB_FILENAME_SHARED_PAT)"
HAVE_RANLIB=yes
;;
@@ -5216,6 +5216,10 @@ fi
solaris*)
opal_release_flags="-O3 -DSOLARIS"
opal_debug_flags="-g -D_DEBUG -DSOLARIS"
+ ;;
+ openbsd*)
+ opal_release_flags=""
+ opal_debug_flags="-g3 -ggdb -O0 -D_DEBUG"
;;
*)
opal_release_flags="-Os"