mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #9437: Fix building C extensions with non-default LDFLAGS.
This commit is contained in:
parent
19f8edc39d
commit
dbec780a0b
4 changed files with 20 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue