Searched hist:9812 (Results 1 - 1 of 1) sorted by relevance

/gem5/
H A DSConstructdiff 9812:9265bcff11b7 Thu Jul 18 08:29:00 EDT 2013 Andreas Hansson <andreas.hansson@arm.com> scons: Use python-config instead of distutils

This patch changes how we determine the Python-related compiler and
linker flags. The previous approach used the internal LINKFORSHARED
which is not intended as part of the external API
(http://bugs.python.org/issue3588) and causes failures on recent OSX
installations.

Instead of using distutils we now rely on python-config and scons
ParseConfig. For backwards compatibility we also parse out the
includes and libs although this could safely be dropped. The drawback
of this patch is that Python 2.5 is now required, but hopefully that
is an acceptable compromise as any system with gcc 4.4 most likely
will have Python >= 2.5.

Completed in 62 milliseconds