diff options
Diffstat (limited to 'lang/python24-pth/patches/patch-ab')
-rw-r--r-- | lang/python24-pth/patches/patch-ab | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/python24-pth/patches/patch-ab b/lang/python24-pth/patches/patch-ab new file mode 100644 index 00000000000..fac547c7a0a --- /dev/null +++ b/lang/python24-pth/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/12/05 23:28:55 recht Exp $ + +--- Lib/distutils/command/build_ext.py.orig Sun Dec 5 22:03:11 2004 ++++ Lib/distutils/command/build_ext.py Sun Dec 5 22:03:25 2004 +@@ -485,7 +485,17 @@ + # 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) |