summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authormdejong <mdejong>2003-01-21 08:27:52 (GMT)
committermdejong <mdejong>2003-01-21 08:27:52 (GMT)
commit52f75ce51c82d4741fc39a05f6e2a190d33a6e83 (patch)
tree07402926b759a770a7cc2aa866f1f6d11ae5dd9a /win/tcl.m4
parent3feede9e7c7f1f79ad102248356a2de365598594 (diff)
downloadtcl-52f75ce51c82d4741fc39a05f6e2a190d33a6e83.zip
tcl-52f75ce51c82d4741fc39a05f6e2a190d33a6e83.tar.gz
tcl-52f75ce51c82d4741fc39a05f6e2a190d33a6e83.tar.bz2
* win/configure: Regen.
* win/tcl.m4 (SC_CONFIG_CFLAGS): Set SHLIB_SUFFIX so that TCL_SHLIB_SUFFIX will be set to a useful value in the generated tclConfig.sh. Set SHLIB_LD_LIBS to "" or '${LIBS}' based on the --enable-shared flag. This matches the UNIX implementation.
Diffstat (limited to 'win/tcl.m4')
-rw-r--r--win/tcl.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/win/tcl.m4 b/win/tcl.m4
index 0c07b21..be20f7b 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -390,6 +390,8 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
AC_CHECK_PROG(CYGPATH, cygpath, cygpath -w, echo)
+ SHLIB_SUFFIX=".dll"
+
# Check for a bug in gcc's windres that causes the
# compile to fail when a Windows native path is
# passed into windres. The mingw toolchain requires
@@ -492,6 +494,7 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
# -luser32 and -lmsvcrt by default. Make sure CFLAGS is
# included so -mno-cygwin passed the correct libs to the linker.
SHLIB_LD='${CC} -shared ${CFLAGS}'
+ SHLIB_LD_LIBS='${LIBS}'
# Add SHLIB_LD_LIBS to the Make rule, not here.
MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -o \[$]@ ${extra_ldflags} \
-Wl,--out-implib,\$(patsubst %.dll,lib%.a,\[$]@)"
@@ -503,6 +506,7 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
# DLLSUFFIX is separate because it is the building block for
# users of tclConfig.sh that may build shared or static.
DLLSUFFIX="\${DBGX}.dll"
+ SHLIB_SUFFIX=.dll
EXTRA_CFLAGS="${extra_cflags}"
@@ -541,6 +545,7 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
LIBSUFFIX="s\${DBGX}.lib"
LIBRARIES="\${STATIC_LIBRARIES}"
EXESUFFIX="s\${DBGX}.exe"
+ SHLIB_LD_LIBS=""
else
# dynamic
AC_MSG_RESULT([using shared flags])
@@ -550,6 +555,7 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
LIBSUFFIX="\${DBGX}.lib"
EXESUFFIX="\${DBGX}.exe"
LIBRARIES="\${SHARED_LIBRARIES}"
+ SHLIB_LD_LIBS='${LIBS}'
fi
# DLLSUFFIX is separate because it is the building block for
# users of tclConfig.sh that may build shared or static.
@@ -593,7 +599,6 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
fi
SHLIB_LD="${LINKBIN} -dll -nologo -incremental:no"
- SHLIB_LD_LIBS="user32.lib advapi32.lib"
LIBS="user32.lib advapi32.lib"
LIBS_GUI="gdi32.lib comdlg32.lib imm32.lib comctl32.lib shell32.lib"
RC_OUT=-fo