Commit 2f816e6a authored by Hirokazu Yamamoto's avatar Hirokazu Yamamoto

Issue #9552: Avoid unnecessary rebuild of OpenSSL. (Windows)

parent 38425292
...@@ -222,6 +222,8 @@ Tests ...@@ -222,6 +222,8 @@ Tests
Build Build
----- -----
- Issue #9552: Avoid unnecessary rebuild of OpenSSL. (Windows)
- Issue #1633863: Don't ignore $CC under AIX. - Issue #1633863: Don't ignore $CC under AIX.
- Issue #9810: Compile bzip2 source files in python's project file - Issue #9810: Compile bzip2 source files in python's project file
......
...@@ -141,8 +141,8 @@ def fix_makefile(makefile): ...@@ -141,8 +141,8 @@ def fix_makefile(makefile):
fout.write(line) fout.write(line)
def run_configure(configure, do_script): def run_configure(configure, do_script):
print("perl Configure "+configure) print("perl Configure "+configure+" no-idea no-mdc2")
os.system("perl Configure "+configure) os.system("perl Configure "+configure+" no-idea no-mdc2")
print(do_script) print(do_script)
os.system(do_script) os.system(do_script)
...@@ -161,12 +161,14 @@ def main(): ...@@ -161,12 +161,14 @@ def main():
do_script = "ms\\do_nasm" do_script = "ms\\do_nasm"
makefile="ms\\nt.mak" makefile="ms\\nt.mak"
m32 = makefile m32 = makefile
dirsuffix = "32"
elif sys.argv[2] == "x64": elif sys.argv[2] == "x64":
arch="amd64" arch="amd64"
configure = "VC-WIN64A" configure = "VC-WIN64A"
do_script = "ms\\do_win64a" do_script = "ms\\do_win64a"
makefile = "ms\\nt64.mak" makefile = "ms\\nt64.mak"
m32 = makefile.replace('64', '') m32 = makefile.replace('64', '')
dirsuffix = "64"
#os.environ["VSEXTCOMP_USECL"] = "MS_OPTERON" #os.environ["VSEXTCOMP_USECL"] = "MS_OPTERON"
else: else:
raise ValueError(str(sys.argv)) raise ValueError(str(sys.argv))
...@@ -223,6 +225,15 @@ def main(): ...@@ -223,6 +225,15 @@ def main():
shutil.copy(r"crypto\buildinf.h", r"crypto\buildinf_%s.h" % arch) shutil.copy(r"crypto\buildinf.h", r"crypto\buildinf_%s.h" % arch)
shutil.copy(r"crypto\opensslconf.h", r"crypto\opensslconf_%s.h" % arch) shutil.copy(r"crypto\opensslconf.h", r"crypto\opensslconf_%s.h" % arch)
# If the assembler files don't exist in tmpXX, copy them there
if perl is None:
if not os.path.exists("tmp"+dirsuffix):
os.mkdir("tmp"+dirsuffix)
for f in os.listdir("asm"+dirsuffix):
if not f.endswith(".asm"): continue
if os.path.isfile(r"tmp%s\%s" % (dirsuffix, f)): continue
shutil.copy(r"asm%s\%s" % (dirsuffix, f), "tmp"+dirsuffix)
# Now run make. # Now run make.
if arch == "amd64": if arch == "amd64":
rc = os.system("ml64 -c -Foms\\uptable.obj ms\\uptable.asm") rc = os.system("ml64 -c -Foms\\uptable.obj ms\\uptable.asm")
......
...@@ -228,11 +228,13 @@ def main(): ...@@ -228,11 +228,13 @@ def main():
shutil.copy(r"crypto\opensslconf.h", r"crypto\opensslconf_%s.h" % arch) shutil.copy(r"crypto\opensslconf.h", r"crypto\opensslconf_%s.h" % arch)
# If the assembler files don't exist in tmpXX, copy them there # If the assembler files don't exist in tmpXX, copy them there
if not os.path.exists("tmp"+dirsuffix): if perl is None:
os.mkdir("tmp"+dirsuffix) if not os.path.exists("tmp"+dirsuffix):
for f in os.listdir("asm"+dirsuffix): os.mkdir("tmp"+dirsuffix)
if not f.endswith(".asm"): continue for f in os.listdir("asm"+dirsuffix):
shutil.copy(r"asm%s\%s" % (dirsuffix, f), "tmp"+dirsuffix) if not f.endswith(".asm"): continue
if os.path.isfile(r"tmp%s\%s" % (dirsuffix, f)): continue
shutil.copy(r"asm%s\%s" % (dirsuffix, f), "tmp"+dirsuffix)
# Now run make. # Now run make.
if arch == "amd64": if arch == "amd64":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment