openbsd-ports/lang/otcl/patches/patch-configure
2007-10-24 14:58:16 +00:00

33 lines
1.2 KiB
Plaintext

$OpenBSD: patch-configure,v 1.5 2007/10/24 14:58:16 steven Exp $
--- configure.orig Sun Feb 18 23:19:10 2007
+++ configure Sat Oct 13 15:48:01 2007
@@ -4163,6 +4163,7 @@ TCL_H_PLACES=" \
/usr/local/lib/tcl$TCL_HI_VERS \
/usr/local/lib/tcl$TCL_ALT_VERS \
/usr/local/include/tcl$TCL_VERS \
+ /usr/local/include/tcl$TCL_HI_VERS/generic \
/usr/local/include/tcl$TCL_HI_VERS \
/usr/local/include/tcl$TCL_ALT_VERS \
/usr/local/include \
@@ -5532,16 +5533,16 @@ case $system in
DL_LIBS="-ldl"
SHLD_FLAGS="-Wl,-Bexport"
;;
- NetBSD-*|FreeBSD-*)
+ NetBSD-*|FreeBSD-*|OpenBSD-*)
# Not available on all versions: check for include file.
if test -e /usr/include/dlfcn.h; then
SHLIB_CFLAGS="-fpic"
- SHLIB_LD="ld -Bshareable"
- SHLIB_SUFFIX=".so"
+ SHLIB_LD="cc -shared"
+ SHLIB_SUFFIX=".so.${LIBotcl_VERSION}"
DL_LIBS=""
SHLD_FLAGS=""
else
- echo "NetBSD/FreeBSD with no support for dynamic loading"
+ echo "NetBSD/FreeBSD/OpenBSD with no support for dynamic loading"
echo " or shared libraries on this system."
SHLIB_CFLAGS=""
SHLIB_LD=": Skipping shared libaries"