[issue9437] can't build extensions with non-default ldflags (e.g. -m32)

Antoine Pitrou report at bugs.python.org
Mon Oct 11 17:34:47 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

The cause for the failure seems to be a bug in the dreaded _parse_makefile(). When you give it a Makefile such as:

LDFLAGS=-foo
PY_LDFLAGS=-bar
LDSHARED=$(CC) -shared ${LDFLAGS} $(PY_LDFLAGS)

It outputs the following variables:

{'CC': '',
 'LDFLAGS': '-foo',
 'LDSHARED': '-shared ${LDFLAGS} -bar',
 'PY_LDFLAGS': '-bar'}

That is, ${LDFLAGS} isn't expanded.

However, since the Makefile now explicitly appends PY_LDFLAGS to LDSHARED, we could also stop doing so in ./configure.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9437>
_______________________________________


More information about the Python-bugs-list mailing list