freebsd-ports/x11-toolkits/tk82/files/patch-aa
2002-12-09 08:25:50 +00:00

43 lines
1.2 KiB
Text

--- configure.orig Tue Dec 14 20:00:19 1999
+++ configure Sun Dec 8 19:58:41 2002
@@ -1757,7 +1757,7 @@
LDFLAGS="-Wl,-Bexport"
LD_SEARCH_FLAGS=""
;;
- NetBSD-*|FreeBSD-[1-2].*|OpenBSD-*)
+ NetBSD-*|FreeBSD-*|OpenBSD-*)
# Not available on all versions: check for include file.
ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
@@ -1788,15 +1788,20 @@
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
- SHLIB_CFLAGS="-fpic"
- SHLIB_LD="ld -Bshareable -x"
+ SHLIB_CFLAGS="-fPIC"
SHLIB_LD_LIBS=""
SHLIB_SUFFIX=".so"
DL_OBJS="tclLoadDl.o"
DL_LIBS=""
LDFLAGS=""
LD_SEARCH_FLAGS=""
- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
+ if eval "test \"`echo ${PORTOBJFORMAT}`\" = elf" ; then
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1'
+ SHLIB_LD="ld -shared -x -soname \$@"
+ else
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
+ SHLIB_LD="ld -Bshareable -x"
+ fi
else
echo "$ac_t""no" 1>&6
@@ -2267,6 +2272,7 @@
echo "$ac_t""no" 1>&6
fi
+TCL_SRC_DIR=${prefix}/include/tcl${TCL_VERSION}
LIB_RUNTIME_DIR='${LIB_RUNTIME_DIR}'