]> granicus.if.org Git - python/commit
Without this patch the value of sysconfig.get_config_var('LDSHARED')
authorRonald Oussoren <ronaldoussoren@mac.com>
Tue, 20 Jul 2010 16:07:10 +0000 (16:07 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Tue, 20 Jul 2010 16:07:10 +0000 (16:07 +0000)
commitd21886cea4d661ba81b577d4bb0792e4ce0e575a
treee1ee1d26b2a18b52d6bf809fd22e8e982356c85a
parent41e6c3df8bd8e7f3990886c5269b2f446095de38
Without this patch the value of sysconfig.get_config_var('LDSHARED')
is wrong when PY_LDFLAGS is not empty.

The bug was caused by LDSHARED getting expanded *before* sysconfig
renamed PY_LDSHARED (and simular values) to names without a PY_
prefix.

The patch tries to maintain the intended behaviour of allowing users
to set LDFLAGS in the environment and have that affect the build.

Without this patch a universal build on OSX cannot build universal
(fat binary) extensions.
Lib/sysconfig.py