summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-02 11:19:57 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-02 11:19:57 (GMT)
commit02c730b29850204b02de5c9c1e70c52fd0fd9a65 (patch)
tree4120481fadbd89158451236048f3b677a28aa498
parent9727e58e7d335ffd3a43602fbcab4a99e5dc7758 (diff)
downloadtcl-02c730b29850204b02de5c9c1e70c52fd0fd9a65.zip
tcl-02c730b29850204b02de5c9c1e70c52fd0fd9a65.tar.gz
tcl-02c730b29850204b02de5c9c1e70c52fd0fd9a65.tar.bz2
Fix linker message on windows: LINK : warming LNK4108: /ALIGN specified without /DRIVER; image may not run.
This options was only useful on MSVC++ 5.0 and earlier, which is no longer supported
-rw-r--r--win/makefile.vc3
-rw-r--r--win/rules.vc13
2 files changed, 0 insertions, 16 deletions
diff --git a/win/makefile.vc b/win/makefile.vc
index f8ac7e2..eaf6888 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -489,9 +489,6 @@ lflags = $(lflags) -nodefaultlib:libucrt.lib
!if $(ALIGN98_HACK) && !$(STATIC_BUILD)
### Align sections for PE size savings.
lflags = $(lflags) -opt:nowin98
-!else if !$(ALIGN98_HACK) && $(STATIC_BUILD)
-### Align sections for speed in loading by choosing the virtual page size.
-lflags = $(lflags) -align:4096
!endif
!if $(LOIMPACT)
diff --git a/win/rules.vc b/win/rules.vc
index a4c94ff..753df14 100644
--- a/win/rules.vc
+++ b/win/rules.vc
@@ -193,19 +193,6 @@ COMPILERFLAGS = $(COMPILERFLAGS) -QIA64_Bx
LINKER_TESTFLAGS = /DLL /NOENTRY /OUT:nmhlp-out.txt
!endif
-!if "$(MACHINE)" == "IX86"
-### test for -align:4096, when align:512 will do.
-!if [nmakehlp -l -opt:nowin98 $(LINKER_TESTFLAGS)]
-!message *** Linker has 'Win98 alignment problem'
-ALIGN98_HACK = 1
-!else
-!message *** Linker does not have 'Win98 alignment problem'
-ALIGN98_HACK = 0
-!endif
-!else
-ALIGN98_HACK = 0
-!endif
-
LINKERFLAGS =
!if [nmakehlp -l -ltcg $(LINKER_TESTFLAGS)]