diff options
Diffstat (limited to 'lang/python22-pth/patches/patch-ae')
-rw-r--r-- | lang/python22-pth/patches/patch-ae | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lang/python22-pth/patches/patch-ae b/lang/python22-pth/patches/patch-ae new file mode 100644 index 00000000000..9b8b4a250c8 --- /dev/null +++ b/lang/python22-pth/patches/patch-ae @@ -0,0 +1,23 @@ +$NetBSD: patch-ae,v 1.1.1.1 2002/10/25 10:48:48 drochner Exp $ + +--- Lib/distutils/command/build_ext.py.orig Thu Dec 6 17:59:54 2001 ++++ Lib/distutils/command/build_ext.py +@@ -472,8 +472,18 @@ + # 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'])) + + self.compiler.link_shared_object( + objects, ext_filename, |