]> 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:47 +0000 (02:10 +0200)
committerdoko@ubuntu.com <doko@ubuntu.com>
Thu, 2 Oct 2014 00:10:47 +0000 (02:10 +0200)
Lib/distutils/command/build_ext.py
Misc/NEWS

index 3ab2d04bf98a6c1b2b1a41a02e01cb5925e10ce3..acbe648036fcfd3698bbdcac1a0c7748a52b3726 100644 (file)
@@ -237,7 +237,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 ffb852f27476d5eedfa2e8437dde70bcb3fc5f16..8602e8d7bfd135fff952067d14ea86c28aae513c 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -40,6 +40,8 @@ Build
 
 - 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?
 ===========================