summaryrefslogtreecommitdiffstats
path: root/Lib/sysconfig.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-10-10 09:37:12 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-10-10 09:37:12 (GMT)
commitdbec780a0b35c3cc78b224bcb69295d863c57503 (patch)
tree4cca36cc8e44db32c69f3a95cea79a8ab5dc0f29 /Lib/sysconfig.py
parent19f8edc39d344b12f8b60c3c23bdfb8e523593b7 (diff)
downloadcpython-dbec780a0b35c3cc78b224bcb69295d863c57503.zip
cpython-dbec780a0b35c3cc78b224bcb69295d863c57503.tar.gz
cpython-dbec780a0b35c3cc78b224bcb69295d863c57503.tar.bz2
Issue #9437: Fix building C extensions with non-default LDFLAGS.
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r--Lib/sysconfig.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index 730718a..19847c9 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -296,6 +296,11 @@ def _parse_makefile(filename, vars=None):
# bogus variable reference; just drop it since we can't deal
variables.remove(name)
+ # strip spurious spaces
+ for k, v in done.items():
+ if isinstance(v, str):
+ done[k] = v.strip()
+
# save the results in the global dictionary
vars.update(done)
return vars