]> granicus.if.org Git - python/commitdiff
Specify the bufferoverflowU.lib to the makefile on the command line
authorThomas Heller <theller@ctypes.org>
Tue, 12 Jun 2007 17:28:31 +0000 (17:28 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 12 Jun 2007 17:28:31 +0000 (17:28 +0000)
(for ReleaseAMD64 builds).

PCbuild/_ssl.mak
PCbuild/build_ssl.py

index 5641c6a72db1623869fd1bc5fb36cf5a30202746..3420ef13f32b1859d486fa780fb0c00e4194d6ff 100644 (file)
@@ -1,3 +1,4 @@
+EXTRA_LIBS=
 
 !IFDEF DEBUG
 SUFFIX=_d.pyd
@@ -26,12 +27,12 @@ _ssl$(SUFFIX): $(SSL_SOURCE) $(SSL_LIB_DIR)/libeay32.lib $(SSL_LIB_DIR)/ssleay32
        @if not exist "$(TEMP)/_ssl/." mkdir "$(TEMP)/_ssl"
        cl /nologo /c $(SSL_SOURCE) $(CFLAGS) /Fo$(TEMP)\_ssl\$*.obj $(INCLUDES)
        link /nologo @<<
-             /dll /out:_ssl$(SUFFIX) $(TEMP)\_ssl\$*.obj $(SSL_LIBS)
+             /dll /out:_ssl$(SUFFIX) $(TEMP)\_ssl\$*.obj $(SSL_LIBS) $(EXTRA_LIBS)
 <<
 
 _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) $(EXTRA_CFLAGS) /Fo$(TEMP)\_hashlib\$*.obj $(INCLUDES) 
     link /nologo @<<
-       /dll /out:_hashlib$(SUFFIX) $(HASH_LIBS) $(TEMP)\_hashlib\$*.obj
+       /dll /out:_hashlib$(SUFFIX) $(HASH_LIBS) $(EXTRA_LIBS) $(TEMP)\_hashlib\$*.obj
 <<
index 2a31ca4679f2dcbd5a92612aff692969c3a867f5..96809b3daef085d2075b39e79324089bdf27a512 100644 (file)
@@ -170,7 +170,7 @@ def main():
     if debug:
         defs = defs + " " + "DEBUG=1"
     if arch in ('amd64', 'ia64'):
-        defs = defs + " EXTRA_CFLAGS=/GS-"
+        defs = defs + " EXTRA_CFLAGS=/GS- EXTRA_LIBS=bufferoverflowU.lib"
     makeCommand = 'nmake /nologo -f _ssl.mak ' + defs + " " + make_flags
     print "Executing:", makeCommand
     sys.stdout.flush()