From: Matthias Klose Date: Sun, 3 Dec 2006 17:16:41 +0000 (+0000) Subject: - Fix build failure on kfreebsd and on the hurd. X-Git-Tag: v2.6a1~2392 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d149d0c76a7fa8c90140342dad3e1c220c63c054;p=python - Fix build failure on kfreebsd and on the hurd. --- diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index 00f8a6b9ae..2413829369 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -186,7 +186,7 @@ class build_ext (Command): # for extensions under Cygwin and AtheOS Python's library directory must be # appended to library_dirs if sys.platform[:6] == 'cygwin' or sys.platform[:6] == 'atheos' or \ - (sys.platform.startswith('linux') and + ((sys.platform.startswith('linux') or sys.platform.startswith('gnu')) and sysconfig.get_config_var('Py_ENABLE_SHARED')): if string.find(sys.executable, sys.exec_prefix) != -1: # building third party extensions diff --git a/Misc/NEWS b/Misc/NEWS index ef6f951013..856ee4cb65 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -351,6 +351,8 @@ Build - Patch #1540470, for OpenBSD 4.0. +- Fix build failure on kfreebsd and on the hurd. + C API -----