]> granicus.if.org Git - python/commitdiff
- Issue #17219: Add library build dir for Python extension cross-builds.
authordoko@ubuntu.com <doko@ubuntu.com>
Thu, 2 Oct 2014 00:10:06 +0000 (02:10 +0200)
committerdoko@ubuntu.com <doko@ubuntu.com>
Thu, 2 Oct 2014 00:10:06 +0000 (02:10 +0200)
Lib/distutils/command/build_ext.py
Misc/NEWS

index f0a7d4cafdd87750d4ef94f1d334be5fda770564..2ab73aad0cc546ae7fa15c5ce7cf1e199ab68cff 100644 (file)
@@ -235,7 +235,7 @@ class build_ext (Command):
         # 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:
index 2158e6879d94ca580f87f7d28bc4203011c8d5d7..5adf6a92ff097499d64353baa544aab60d1e63f3 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -244,6 +244,8 @@ Build
 
 - Issue #18096: Fix library order returned by python-config.
 
+- Issue #17219: Add library build dir for Python extension cross-builds.
+
 Windows
 -------