diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-10-04 11:27:39 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-10-04 11:27:39 (GMT) |
commit | dc7e3a32ad6ebf036936c44113cb6e5de09975a4 (patch) | |
tree | caef08c5173e99dc397318762d2f22e0739a1a32 /win/tcl.m4 | |
parent | a656da49db4386d4dd04098720ee5fb4dbdd4ea5 (diff) | |
parent | 451ea5b7d46daf27a0e9b56626bf16db1f2a115e (diff) | |
download | tk-dc7e3a32ad6ebf036936c44113cb6e5de09975a4.zip tk-dc7e3a32ad6ebf036936c44113cb6e5de09975a4.tar.gz tk-dc7e3a32ad6ebf036936c44113cb6e5de09975a4.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="" |