ports/cad/netgen/patches/patch-scripts_configure

41 lines
1 KiB
Text

Index: scripts/configure
--- scripts/configure.orig
+++ scripts/configure
@@ -6437,7 +6437,7 @@ fi
CFLAGS="${CFLAGS} -L/usr/X11R6/include"
;;
- *-netbsd*|*-openbsd*)
+ *-netbsd*)
# Not available on all versions: check for include file.
ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
@@ -6453,6 +6453,11 @@ fi
fi
;;
+ *-openbsd*)
+ SHLIB_CFLAGS="-fPIC"
+ LDDL_FLAGS="-shared ${LIB_SPEC}"
+ ;;
+
*-nextstep*)
LDDL_FLAGS="-nostdlib -r"
;;
@@ -7813,16 +7818,5 @@ else
echo " on your system."
echo
fi
-
-echo "-----------------------------------------------------------"
-echo
-
-echo "Use 'make' to compile and 'make install' to install."
-echo
-echo "Errors may not be printed to stdout: see files 'make.log' "
-echo " and 'install.log' for a complete error summary."
-echo
-echo "-----------------------------------------------------------"
-echo
cp defs.mak ..