summaryrefslogtreecommitdiffstats
path: root/PCbuild9
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-23 17:32:38 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-11-23 17:32:38 (GMT)
commit0eb21022f2b5492c90d377379d4b2a945984f29c (patch)
treeec48c8c7eb48ba2945533cee9731f68543cc5e6e /PCbuild9
parent62a8ee1a4ac688f82e2ec76672ae70f4ed006246 (diff)
downloadcpython-0eb21022f2b5492c90d377379d4b2a945984f29c.zip
cpython-0eb21022f2b5492c90d377379d4b2a945984f29c.tar.gz
cpython-0eb21022f2b5492c90d377379d4b2a945984f29c.tar.bz2
Implemented request from Marc-Andre Lemburg
For license reasons Python must not ship with IDEA, RC5 and MDC2. The latter are disabled by default but IDEA is enabled by default.
Diffstat (limited to 'PCbuild9')
-rw-r--r--PCbuild9/build_ssl.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/PCbuild9/build_ssl.py b/PCbuild9/build_ssl.py
index 96d5aad..db73e24 100644
--- a/PCbuild9/build_ssl.py
+++ b/PCbuild9/build_ssl.py
@@ -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):