aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Jones2005-02-16 11:36:22 +0000
committerDavid Jones2005-02-16 11:36:22 +0000
commitdcbdb260ff1d712fc8ca923b21455efa4eae3d35 (patch)
tree9cf87ec5317c99c3eaf0f8420289410a581ffd86
parentc3127296f5c193c081dbda392c041569884a74cf (diff)
downloademacs-dcbdb260ff1d712fc8ca923b21455efa4eae3d35.tar.gz
emacs-dcbdb260ff1d712fc8ca923b21455efa4eae3d35.zip
Mps: windows linker problem.
Copied from Perforce Change: 144811 ServerID: perforce.ravenbrook.com
-rw-r--r--mps/code/commpre.nmk8
-rw-r--r--mps/code/w3i3mv.nmk5
2 files changed, 11 insertions, 2 deletions
diff --git a/mps/code/commpre.nmk b/mps/code/commpre.nmk
index 7e6cf8abc3e..c10da3de76d 100644
--- a/mps/code/commpre.nmk
+++ b/mps/code/commpre.nmk
@@ -129,8 +129,14 @@ CFLAGSCOMMONPOST = $(CFLAGSTARGETPOST)
129 129
130# Flags for use in the variety combinations 130# Flags for use in the variety combinations
131CFLAGSHOT = /Ox /DNDEBUG 131CFLAGSHOT = /Ox /DNDEBUG
132# We used to have /GZ here (stack probe).
132# Note that GZ is specific to version 12 of the cl tool. drj 2003-11-04 133# Note that GZ is specific to version 12 of the cl tool. drj 2003-11-04
133CFLAGSCOOL = /Od /GZ 134# It is ignored on earlier versions of the cl tool.
135# /GZ here generates a dependency on the C library and when we are
136# building a DLL, mpsdy.dll, the linker step will fail (error LNK2001:
137# unresolved external symbol __chkesp). See
138# http://support.microsoft.com/kb/q191669/
139CFLAGSCOOL = /Od
134CFLAGSINTERNAL = /Zi 140CFLAGSINTERNAL = /Zi
135CFLAGSEXTERNAL = 141CFLAGSEXTERNAL =
136 142
diff --git a/mps/code/w3i3mv.nmk b/mps/code/w3i3mv.nmk
index f3b98dbdea7..3f2c8cfce50 100644
--- a/mps/code/w3i3mv.nmk
+++ b/mps/code/w3i3mv.nmk
@@ -8,7 +8,10 @@ PFM = w3i3mv
8RAINBOWPATH = MSVISUAL\WIN32\I386 8RAINBOWPATH = MSVISUAL\WIN32\I386
9DONGLELIB = $(RAINBOWPATH)\spromeps.lib 9DONGLELIB = $(RAINBOWPATH)\spromeps.lib
10 10
11PFMDEFS = /DWIN32 /D_WINDOWS /I$(RAINBOWPATH) 11# /Gs appears to be necessary to suppress stack checks. Stack checks
12# (if not suppressed) generate a dependency on the C library, __chkesp,
13# which causes the linker step to fail when building the DLL, mpsdy.dll.
14PFMDEFS = /DWIN32 /D_WINDOWS /Gs /I$(RAINBOWPATH)
12 15
13MPM = <ring> <mpm> <bt> <protocol> <boot> \ 16MPM = <ring> <mpm> <bt> <protocol> <boot> \
14 <arenavm> <arenacl> <locus> <arena> <global> <tract> <reserv> \ 17 <arenavm> <arenacl> <locus> <arena> <global> <tract> <reserv> \