summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2014-09-01 12:31:08 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2014-09-01 12:31:08 (GMT)
commitf2c3525aae9dd81522df69ab37302f2c55406459 (patch)
tree7ea6fca5e0c20b510c5771e1ff5969567de6a398 /unix/configure
parentf37f12ddeba81dca8743441a81866abbc8c543b1 (diff)
parenta1b61fd04e7afb5d86cde07dc4548c90295f7055 (diff)
downloadtk-f2c3525aae9dd81522df69ab37302f2c55406459.zip
tk-f2c3525aae9dd81522df69ab37302f2c55406459.tar.gz
tk-f2c3525aae9dd81522df69ab37302f2c55406459.tar.bz2
Combine TCL_SHLIB_LD_EXTRAS+TK_SHLIB_LD_EXTRAS (for Cygwin and FreeBSD) to a single SHLIB_LD_LIBS usable for both Tcl and Tk
Diffstat (limited to 'unix/configure')
-rwxr-xr-xunix/configure8
1 files changed, 3 insertions, 5 deletions
diff --git a/unix/configure b/unix/configure
index 68f7bf8..2650a0c 100755
--- a/unix/configure
+++ b/unix/configure
@@ -4852,8 +4852,7 @@ fi
LD_SEARCH_FLAGS=""
TCL_NEEDS_EXP_FILE=1
TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.dll.a'
- TCL_SHLIB_LD_EXTRAS='-Wl,--out-implib,$@.a'
- TK_SHLIB_LD_EXTRAS='-Wl,--out-implib,$@.a'
+ SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\$@.a"
echo "$as_me:$LINENO: checking for Cygwin version of gcc" >&5
echo $ECHO_N "checking for Cygwin version of gcc... $ECHO_C" >&6
if test "${ac_cv_cygwin+set}" = set; then
@@ -5586,8 +5585,7 @@ fi
# This configuration from FreeBSD Ports.
SHLIB_CFLAGS="-fPIC"
SHLIB_LD="${CC} -shared"
- SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,-soname=\$@"
- TK_SHLIB_LD_EXTRAS="-Wl,-soname,\$@"
+ SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,-soname,\$@"
SHLIB_SUFFIX=".so"
DL_OBJS="tclLoadDl.o"
DL_LIBS=""
@@ -6825,7 +6823,7 @@ fi
if test "${SHARED_BUILD}" = 1 -a "${SHLIB_SUFFIX}" != ""; then
LIB_SUFFIX=${SHARED_LIB_SUFFIX}
- MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${TCL_SHLIB_LD_EXTRAS} ${SHLIB_LD_LIBS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
+ MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
if test "${SHLIB_SUFFIX}" = ".dll"; then
INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(BIN_INSTALL_DIR)/$(LIB_FILE)"'