changeset: 92733:c5f908c56fbd branch: 3.4 parent: 92730:b826ba76d1ce user: doko@ubuntu.com date: Thu Oct 02 02:10:47 2014 +0200 files: Lib/distutils/command/build_ext.py Misc/NEWS description: - Issue #17219: Add library build dir for Python extension cross-builds. diff -r b826ba76d1ce -r c5f908c56fbd Lib/distutils/command/build_ext.py --- a/Lib/distutils/command/build_ext.py Thu Oct 02 02:00:14 2014 +0200 +++ b/Lib/distutils/command/build_ext.py Thu Oct 02 02:10:47 2014 +0200 @@ -237,7 +237,7 @@ # Python's library directory must be appended to library_dirs # See Issues: #1600860, #4366 if (sysconfig.get_config_var('Py_ENABLE_SHARED')): - if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")): + if not sysconfig.python_build: # building third party extensions self.library_dirs.append(sysconfig.get_config_var('LIBDIR')) else: diff -r b826ba76d1ce -r c5f908c56fbd Misc/NEWS --- a/Misc/NEWS Thu Oct 02 02:00:14 2014 +0200 +++ b/Misc/NEWS Thu Oct 02 02:10:47 2014 +0200 @@ -40,6 +40,8 @@ - Issue #18096: Fix library order returned by python-config. +- Issue #17219: Add library build dir for Python extension cross-builds. + What's New in Python 3.4.2? ===========================