diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-01-21 15:31:28 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-01-21 15:31:28 (GMT) |
commit | 207a4b3122d2661aa2092107a282d959495be4ad (patch) | |
tree | b4330b313d90a6758a49d131cc7259f2acb052bb /win/rules.vc | |
parent | ab2df517269ab27a1b84a3dfc911813296cfbca6 (diff) | |
parent | a9f031fc1a3775190eb77ffbfe13027da561a602 (diff) | |
download | tcl-207a4b3122d2661aa2092107a282d959495be4ad.zip tcl-207a4b3122d2661aa2092107a282d959495be4ad.tar.gz tcl-207a4b3122d2661aa2092107a282d959495be4ad.tar.bz2 |
Fix [https://core.tcl-lang.org/thread/info/98ae20f0f5|98ae20f0f5] by no longer compile the stub library using LTO (even if CFLAGS enables LTO)
Diffstat (limited to 'win/rules.vc')
-rw-r--r-- | win/rules.vc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win/rules.vc b/win/rules.vc index c8708cb..e678c34 100644 --- a/win/rules.vc +++ b/win/rules.vc @@ -1510,7 +1510,7 @@ pkgcflags_nostubs = $(appcflags_nostubs) $(PKGNAMEFLAGS) /DBUILD_$(PROJECT) # so we do not remove it from cflags. -GL may prevent extensions
# compiled with one VC version to fail to link against stubs library
# compiled with another VC version. Check for this and fix accordingly.
-stubscflags = $(cflags) $(PKGNAMEFLAGS) $(PRJ_DEFINES) $(OPTDEFINES) -Zl /DSTATIC_BUILD $(INCLUDES) $(USE_STUBS_DEFS)
+stubscflags = $(cflags) $(PKGNAMEFLAGS) $(PRJ_DEFINES) $(OPTDEFINES) /Zl /GL- /DSTATIC_BUILD $(INCLUDES) $(USE_STUBS_DEFS)
# Link flags
|