[New-bugs-announce] [issue9963] test_sysconfig when LDFLAGS defined in the user's environment

Brett Cannon report at bugs.python.org
Tue Sep 28 00:26:35 CEST 2010

New submission from Brett Cannon <brett at python.org>:

test_sysconfig.test_ldshared_value is failing for me on Mac because my LDFLAGS environment variable is being defined twice in what sysconfig.get_config_var('LDFLAGS') returns. This fails in a comparison against sysconfig.get_config_var('LDSHARED') as the values are only set once::

AssertionError: '-L/Users/brett/.slash/_/lib -L/Users/brett/.local/lib  -L/Users/brett/.slash/_/lib -L/Users/brett/.local/lib' not found in 'clang  -L/Users/brett/.slash/_/lib -L/Users/brett/.local/lib -bundle -undefined dynamic_lookup'

I suspect what is happening is sysconfig is using PY_LDFLAGS, which uses both CONFIGURE_LDFLAGS *and* LDFLAGS when the Makefile is run. This leads to LDFLAGS being set twice if it was pulled from the user's environment variable

components: Library (Lib)
messages: 117484
nosy: brett.cannon
priority: deferred blocker
severity: normal
stage: needs patch
status: open
title: test_sysconfig when LDFLAGS defined in the user's environment
type: behavior
versions: Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list