1999-12-23 13:21:28 -05:00
|
|
|
--- configure.in.ORIG Wed Dec 8 10:58:41 1999
|
|
|
|
+++ configure.in Wed Dec 8 10:58:50 1999
|
1999-04-01 21:35:55 -05:00
|
|
|
@@ -851,15 +851,21 @@
|
1998-09-27 07:17:07 -04:00
|
|
|
NetBSD-*|FreeBSD-*|OpenBSD-*)
|
|
|
|
# Not available on all versions: check for include file.
|
|
|
|
AC_CHECK_HEADER(dlfcn.h, [
|
|
|
|
+ # FreeBSD-current supports elf format, now.
|
|
|
|
+ if test "X$PORTOBJFORMAT" = "Xelf"; then
|
|
|
|
+ SHLIB_LD='${CC} -shared -Wl,-x'
|
|
|
|
+ TCL_SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
|
|
|
|
+ else
|
|
|
|
+ SHLIB_LD="ld -Bshareable -x"
|
1999-04-01 21:35:55 -05:00
|
|
|
+ TCL_SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.5'
|
1998-09-27 07:17:07 -04:00
|
|
|
+ fi
|
|
|
|
SHLIB_CFLAGS="-fpic"
|
|
|
|
- SHLIB_LD="ld -Bshareable -x"
|
|
|
|
SHLIB_LD_LIBS=""
|
|
|
|
SHLIB_SUFFIX=".so"
|
|
|
|
DL_OBJS="tclLoadDl.o"
|
1998-05-10 04:09:18 -04:00
|
|
|
DL_LIBS=""
|
|
|
|
LD_FLAGS=""
|
|
|
|
LD_SEARCH_FLAGS=""
|
1998-09-27 07:17:07 -04:00
|
|
|
- TCL_SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
|
1998-05-10 04:09:18 -04:00
|
|
|
], [
|
|
|
|
SHLIB_CFLAGS=""
|
|
|
|
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
|
1999-04-01 21:35:55 -05:00
|
|
|
@@ -1222,6 +1228,7 @@
|
1998-09-27 07:17:07 -04:00
|
|
|
if test "$TCL_UNSHARED_LIB_SUFFIX" = "" ; then
|
|
|
|
TCL_UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
|
|
|
|
fi
|
|
|
|
+TCL_STATIC_LIB_FILE=""
|
|
|
|
AC_ARG_ENABLE(shared,
|
|
|
|
[ --enable-shared build libtcl as a shared library],
|
|
|
|
[tcl_ok=$enableval], [tcl_ok=no])
|
1999-04-01 21:35:55 -05:00
|
|
|
@@ -1230,10 +1237,15 @@
|
1998-09-27 07:17:07 -04:00
|
|
|
TCL_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
|
|
|
|
TCL_LD_SEARCH_FLAGS="${LD_SEARCH_FLAGS}"
|
|
|
|
eval "TCL_LIB_FILE=libtcl${TCL_SHARED_LIB_SUFFIX}"
|
|
|
|
+ eval "TCL_STATIC_LIB_FILE=libtcl${TCL_UNSHARED_LIB_SUFFIX}"
|
|
|
|
if test "x$DL_OBJS" = "xtclLoadAout.o"; then
|
|
|
|
MAKE_LIB="ar cr \${TCL_LIB_FILE} \${OBJS}"
|
|
|
|
else
|
|
|
|
- MAKE_LIB="\${SHLIB_LD} -o \${TCL_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}"
|
|
|
|
+ if test "X$PORTOBJFORMAT" = "Xelf"; then
|
1999-12-23 13:21:28 -05:00
|
|
|
+ MAKE_LIB="\${SHLIB_LD} -o \${TCL_LIB_FILE} \${OBJS} -Wl,-S,-soname=${TCL_LIB_FILE} ${SHLIB_LD_LIBS}"
|
1998-09-27 07:17:07 -04:00
|
|
|
+ else
|
|
|
|
+ MAKE_LIB="\${SHLIB_LD} -o \${TCL_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}"
|
|
|
|
+ fi
|
|
|
|
RANLIB=":"
|
|
|
|
fi
|
|
|
|
else
|
1999-04-01 21:35:55 -05:00
|
|
|
@@ -1274,6 +1286,7 @@
|
1998-09-27 07:17:07 -04:00
|
|
|
# Trick to replace DBGX with TCL_DBGX
|
|
|
|
DBGX='${TCL_DBGX}'
|
|
|
|
eval "TCL_LIB_FILE=${TCL_LIB_FILE}"
|
|
|
|
+eval "TCL_STATIC_LIB_FILE=${TCL_STATIC_LIB_FILE}"
|
|
|
|
|
|
|
|
VERSION='${VERSION}'
|
|
|
|
eval "CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}"
|
1999-04-01 21:35:55 -05:00
|
|
|
@@ -1313,6 +1326,7 @@
|
1998-09-27 07:17:07 -04:00
|
|
|
AC_SUBST(TCL_BUILD_LIB_SPEC)
|
|
|
|
AC_SUBST(TCL_LD_SEARCH_FLAGS)
|
|
|
|
AC_SUBST(TCL_LIB_FILE)
|
|
|
|
+AC_SUBST(TCL_STATIC_LIB_FILE)
|
|
|
|
AC_SUBST(TCL_LIB_FLAG)
|
|
|
|
AC_SUBST(TCL_LIB_SPEC)
|
|
|
|
AC_SUBST(TCL_LIB_VERSIONS_OK)
|