diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-10 09:37:12 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-10 09:37:12 (GMT) |
commit | dbec780a0b35c3cc78b224bcb69295d863c57503 (patch) | |
tree | 4cca36cc8e44db32c69f3a95cea79a8ab5dc0f29 /Lib/distutils/sysconfig.py | |
parent | 19f8edc39d344b12f8b60c3c23bdfb8e523593b7 (diff) | |
download | cpython-dbec780a0b35c3cc78b224bcb69295d863c57503.zip cpython-dbec780a0b35c3cc78b224bcb69295d863c57503.tar.gz cpython-dbec780a0b35c3cc78b224bcb69295d863c57503.tar.bz2 |
Issue #9437: Fix building C extensions with non-default LDFLAGS.
Diffstat (limited to 'Lib/distutils/sysconfig.py')
-rw-r--r-- | Lib/distutils/sysconfig.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py index 48f3fe4..8847e31 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py @@ -359,6 +359,11 @@ def parse_makefile(fn, g=None): fp.close() + # strip spurious spaces + for k, v in done.items(): + if isinstance(v, str): + done[k] = v.strip() + # save the results in the global dictionary g.update(done) return g |