mirror of https://github.com/python/cpython
Add /GS- flags for AMD64.
This commit is contained in:
parent
3b77d3d9a7
commit
9f6ce2b2ff
|
@ -193,7 +193,7 @@
|
|||
ATLMinimizesCRunTimeLibraryUsage="FALSE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_OPTERON"
|
||||
AdditionalOptions=" /USECL:MS_OPTERON /GS-"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include;..\PC;..\..\sqlite-source-3.3.4"
|
||||
|
|
|
@ -31,7 +31,7 @@ _ssl$(SUFFIX): $(SSL_SOURCE) $(SSL_LIB_DIR)/libeay32.lib $(SSL_LIB_DIR)/ssleay32
|
|||
|
||||
_hashlib$(SUFFIX): $(HASH_SOURCE) $(SSL_LIB_DIR)/libeay32.lib ../PC/*.h ../Include/*.h
|
||||
@if not exist "$(TEMP)/_hashlib/." mkdir "$(TEMP)/_hashlib"
|
||||
cl /nologo /c $(HASH_SOURCE) $(CFLAGS) /Fo$(TEMP)\_hashlib\$*.obj $(INCLUDES)
|
||||
cl /nologo /c $(HASH_SOURCE) $(CFLAGS) $(EXTRA_CFLAGS) /Fo$(TEMP)\_hashlib\$*.obj $(INCLUDES)
|
||||
link /nologo @<<
|
||||
/dll /out:_hashlib$(SUFFIX) $(HASH_LIBS) $(TEMP)\_hashlib\$*.obj
|
||||
<<
|
||||
|
|
|
@ -169,6 +169,8 @@ def main():
|
|||
defs = "SSL_DIR=\"%s\"" % (ssl_dir,)
|
||||
if debug:
|
||||
defs = defs + " " + "DEBUG=1"
|
||||
if arch in ('amd64', 'ia64'):
|
||||
defs = defs + " EXTRA_CFLAGS=/GS-"
|
||||
makeCommand = 'nmake /nologo -f _ssl.mak ' + defs + " " + make_flags
|
||||
print "Executing:", makeCommand
|
||||
sys.stdout.flush()
|
||||
|
|
|
@ -189,7 +189,7 @@
|
|||
ATLMinimizesCRunTimeLibraryUsage="FALSE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_OPTERON"
|
||||
AdditionalOptions=" /USECL:MS_OPTERON /GS-"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\expat"
|
||||
|
|
Loading…
Reference in New Issue