diff options
| author | David Jones | 2005-02-16 11:36:22 +0000 |
|---|---|---|
| committer | David Jones | 2005-02-16 11:36:22 +0000 |
| commit | dcbdb260ff1d712fc8ca923b21455efa4eae3d35 (patch) | |
| tree | 9cf87ec5317c99c3eaf0f8420289410a581ffd86 | |
| parent | c3127296f5c193c081dbda392c041569884a74cf (diff) | |
| download | emacs-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.nmk | 8 | ||||
| -rw-r--r-- | mps/code/w3i3mv.nmk | 5 |
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 |
| 131 | CFLAGSHOT = /Ox /DNDEBUG | 131 | CFLAGSHOT = /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 |
| 133 | CFLAGSCOOL = /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/ | ||
| 139 | CFLAGSCOOL = /Od | ||
| 134 | CFLAGSINTERNAL = /Zi | 140 | CFLAGSINTERNAL = /Zi |
| 135 | CFLAGSEXTERNAL = | 141 | CFLAGSEXTERNAL = |
| 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 | |||
| 8 | RAINBOWPATH = MSVISUAL\WIN32\I386 | 8 | RAINBOWPATH = MSVISUAL\WIN32\I386 |
| 9 | DONGLELIB = $(RAINBOWPATH)\spromeps.lib | 9 | DONGLELIB = $(RAINBOWPATH)\spromeps.lib |
| 10 | 10 | ||
| 11 | PFMDEFS = /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. | ||
| 14 | PFMDEFS = /DWIN32 /D_WINDOWS /Gs /I$(RAINBOWPATH) | ||
| 12 | 15 | ||
| 13 | MPM = <ring> <mpm> <bt> <protocol> <boot> \ | 16 | MPM = <ring> <mpm> <bt> <protocol> <boot> \ |
| 14 | <arenavm> <arenacl> <locus> <arena> <global> <tract> <reserv> \ | 17 | <arenavm> <arenacl> <locus> <arena> <global> <tract> <reserv> \ |