d5dc8a4e54
Changes in Python: Quite a few fixes.. See NEWS for details. Changes in the pkg: - add FreeBSD patches from the FreeBSD port - add fix for a fatal bug in type's GC handling causes segfaults (via FreeBSD port) see http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Misc/NEWS?r1=1.831.4.75&r2=1.831.4.76&diff_format=u - always build the db 1.85 module (on all platforms)
23 lines
975 B
Text
23 lines
975 B
Text
$NetBSD: patch-ad,v 1.1 2003/12/08 21:13:56 recht Exp $
|
|
|
|
--- Lib/distutils/command/build_ext.py.orig 2002-11-19 14:12:28.000000000 +0100
|
|
+++ Lib/distutils/command/build_ext.py
|
|
@@ -475,8 +475,18 @@ class build_ext (Command):
|
|
# that go into the mix.
|
|
if ext.extra_objects:
|
|
objects.extend(ext.extra_objects)
|
|
+
|
|
+ # Two possible sources for extra linker arguments:
|
|
+ # - 'extra_link_args' in Extension object
|
|
+ # - LDFLAGS environment variable
|
|
+ # The environment variable should take precedence, and
|
|
+ # any sensible compiler will give precedence to later
|
|
+ # command line args. Hence we combine them in order:
|
|
extra_args = ext.extra_link_args or []
|
|
|
|
+ if os.environ.has_key('LDFLAGS'):
|
|
+ extra_args.extend(string.split(os.environ['LDFLAGS']))
|
|
+
|
|
# Detect target language, if not provided
|
|
language = ext.language or self.compiler.detect_language(sources)
|
|
|