1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/lang/tcl83/files/patch-ab

60 lines
1.8 KiB
Plaintext
Raw Normal View History

--- configure.orig Fri Apr 30 08:23:33 1999
+++ configure Tue May 11 01:25:32 1999
@@ -4384,7 +4384,7 @@
LD_FLAGS="-Wl,-Bexport"
LD_SEARCH_FLAGS=""
;;
- NetBSD-*|FreeBSD-12.*|OpenBSD-*)
+ NetBSD-*|FreeBSD-*|OpenBSD-*)
# Not available on all versions: check for include file.
ac_safe=`echo "dlfcn.h" | tr './\055' '___'`
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
@@ -4413,14 +4413,19 @@
1998-10-03 21:35:24 +00:00
echo "$ac_t""yes" 1>&6
SHLIB_CFLAGS="-fpic"
- SHLIB_LD="ld -Bshareable -x"
SHLIB_LD_LIBS=""
SHLIB_SUFFIX=".so"
DL_OBJS="tclLoadDl.o"
1998-09-15 02:51:10 +00:00
DL_LIBS=""
LD_FLAGS=""
LD_SEARCH_FLAGS=""
1999-01-17 14:07:13 +00:00
- TCL_SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
+ if eval "test \"`echo ${PORTOBJFORMAT}`\" = elf"; then
+ TCL_SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1'
1999-01-17 14:07:13 +00:00
+ SHLIB_LD="ld -shared -x -soname \$@"
+ else
+ TCL_SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
1999-01-17 14:07:13 +00:00
+ SHLIB_LD="ld -Bshareable -x"
+ fi
1998-09-15 02:51:10 +00:00
else
echo "$ac_t""no" 1>&6
@@ -4443,17 +4448,6 @@
TCL_UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
TCL_LIB_VERSIONS_OK=nodots
;;
- FreeBSD-*)
- # FreeBSD 3.* and greater have ELF.
- SHLIB_CFLAGS="-fpic"
- SHLIB_LD="ld -Bshareable -x"
- SHLIB_LD_LIBS=""
- SHLIB_SUFFIX=".so"
- DL_OBJS="tclLoadDl.o"
- DL_LIBS=""
- LD_FLAGS=""
- LD_SEARCH_FLAGS=""
- ;;
NEXTSTEP-*)
SHLIB_CFLAGS=""
SHLIB_LD="cc -nostdlib -r"
@@ -5100,6 +5094,7 @@
# stub support.
#--------------------------------------------------------------------
# Replace ${VERSION} with contents of ${TCL_VERSION}
+${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0
eval "STUB_LIB_FILE=libtclstub${TCL_UNSHARED_LIB_SUFFIX}"
# Replace DBGX with TCL_DBGX
eval "STUB_LIB_FILE=\"${STUB_LIB_FILE}\""