diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-10-03 20:41:03 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-10-03 20:41:03 (GMT) |
commit | cc8bd0f2037f1b9e700caf373dfb1659ba80e4b7 (patch) | |
tree | 3fc83fc1705c8777df7edc1eb281fede2c962029 /win/tcl.m4 | |
parent | 5871b801b3da2d89d15ea3d66bcb3b216f7584fe (diff) | |
parent | c09ca7b7b75b5cd4ce31f726e74fcfdbf011b255 (diff) | |
download | tcl-cc8bd0f2037f1b9e700caf373dfb1659ba80e4b7.zip tcl-cc8bd0f2037f1b9e700caf373dfb1659ba80e4b7.tar.gz tcl-cc8bd0f2037f1b9e700caf373dfb1659ba80e4b7.tar.bz2 |
When compiling with MSVC++, no longer link the stub library with msvcrt??.dll.
This way, workarounds in extensions like [http://core.tcl.tk/itcl/info/a961f0729c] are no longer necessary.
Diffstat (limited to 'win/tcl.m4')
-rw-r--r-- | win/tcl.m4 | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -523,6 +523,7 @@ AC_DEFUN([SC_ENABLE_SYMBOLS], [ # RES # # MAKE_LIB +# MAKE_STUB_LIB # MAKE_EXE # MAKE_DLL # @@ -682,6 +683,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ RC_DEFINE=--define RES=res.o MAKE_LIB="\${STLIB_LD} \[$]@" + MAKE_STUB_LIB="\${STLIB_LD} \[$]@" POST_MAKE_LIB="\${RANLIB} \[$]@" MAKE_EXE="\${CC} -o \[$]@" LIBPREFIX="lib" @@ -709,9 +711,8 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ LIBRARIES="\${SHARED_LIBRARIES}" fi # Link with gcc since ld does not link to default libs like - # -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}' + # -luser32 and -lmsvcrt by default. + SHLIB_LD='${CC} -shared' SHLIB_LD_LIBS='${LIBS}' MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -o \[$]@ ${extra_ldflags} \ -Wl,--out-implib,\$(patsubst %.dll,lib%.a,\[$]@)" @@ -960,6 +961,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ RC_DEFINE=-d RES=res MAKE_LIB="\${STLIB_LD} -out:\[$]@" + MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\[$]@" POST_MAKE_LIB= MAKE_EXE="\${CC} -Fe\[$]@" LIBPREFIX="" |