diff -r 22790c4f3b16 PCbuild/build_ssl.py --- a/PCbuild/build_ssl.py Tue Apr 14 19:03:06 2015 +0300 +++ b/PCbuild/build_ssl.py Wed Apr 15 14:05:22 2015 +0200 @@ -26,6 +26,8 @@ import os, sys, re, shutil +EXCLUDED_ALGOS = ("RC5", "MDC2", "IDEA") + # Find all "foo.exe" files on the PATH. def find_all_on_path(filename, extras = None): entries = os.environ["PATH"].split(os.pathsep) @@ -114,7 +116,7 @@ line = "MKDIR=mkdir\n" if line.startswith("CFLAG="): line = line.strip() - for algo in ("RC5", "MDC2", "IDEA"): + for algo in EXCLUDED_ALGOS: noalgo = " -DOPENSSL_NO_%s" % algo if noalgo not in line: line = line + noalgo @@ -153,6 +155,7 @@ else: raise ValueError(str(sys.argv)) + configure = " ".join("no-" + c.lower() for c in EXCLUDED_ALGOS) + " " + configure make_flags = "" if build_all: make_flags = "-a"