]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Implemented request from Marc-Andre Lemburg
authorChristian Heimes <christian@cheimes.de>
Fri, 23 Nov 2007 17:32:38 +0000 (17:32 +0000)
committerChristian Heimes <christian@cheimes.de>
Fri, 23 Nov 2007 17:32:38 +0000 (17:32 +0000)
For license reasons Python must not ship with IDEA, RC5 and MDC2. The latter are disabled by default but IDEA is enabled by default.

PCbuild9/build_ssl.py

index 96d5aad8dd5c4bdd32964abac3a6592bb2ebc564..db73e24333640c6770f8da7cde0d470a4ddb0064 100644 (file)
@@ -131,6 +131,11 @@ def fix_makefile(makefile):
                 line = "CP=copy\n"
             if line.startswith("MKDIR="):
                 line = "MKDIR=mkdir\n"
+            if line.startswith("CFLAG="):
+                for algo in ("RC5", "MDC2", "IDEA"):
+                    noalgo = " -DOPENSSL_NO_%s" % algo
+                    if noalgo not in line:
+                        line = line + noalgo
             fout.write(line)
 
 def run_configure(configure, do_script):