pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python20 make distutils obey LDFLAGS set in the e...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/168d28b8f957
branches:  trunk
changeset: 460075:168d28b8f957
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Mon Aug 18 09:14:13 2003 +0000

description:
make distutils obey LDFLAGS set in the environment, analogous to
patches we've applied to Python-2.1+

diffstat:

 lang/python20/Makefile         |   4 ++--
 lang/python20/distinfo         |   3 ++-
 lang/python20/patches/patch-cd |  22 ++++++++++++++++++++++
 3 files changed, 26 insertions(+), 3 deletions(-)

diffs (55 lines):

diff -r 579bf9bbd083 -r 168d28b8f957 lang/python20/Makefile
--- a/lang/python20/Makefile    Mon Aug 18 07:46:15 2003 +0000
+++ b/lang/python20/Makefile    Mon Aug 18 09:14:13 2003 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.10 2003/07/17 21:45:13 grant Exp $
+# $NetBSD: Makefile,v 1.11 2003/08/18 09:14:15 drochner Exp $
 #
 
 DISTNAME=      Python-2.0.1
 PKGNAME=       python20-2.0.1
-PKGREVISION=   3
+PKGREVISION=   4
 WRKSRC=                ${WRKDIR}/Python-2.0.1
 CATEGORIES=    lang
 MASTER_SITES=  ftp://ftp.python.org/pub/python/2.0.1/
diff -r 579bf9bbd083 -r 168d28b8f957 lang/python20/distinfo
--- a/lang/python20/distinfo    Mon Aug 18 07:46:15 2003 +0000
+++ b/lang/python20/distinfo    Mon Aug 18 09:14:13 2003 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2003/06/06 18:14:10 drochner Exp $
+$NetBSD: distinfo,v 1.5 2003/08/18 09:14:16 drochner Exp $
 
 SHA1 (python/Python-2.0.1.tgz) = 776584b245ad58ad548732d0c47397c582a4bbab
 Size (python/Python-2.0.1.tgz) = 4097453 bytes
@@ -6,3 +6,4 @@
 SHA1 (patch-ab) = 670cd69d67566bf61d152e3433161c0f146be1b3
 SHA1 (patch-ac) = 74ff40fc338e8209d91e5da11fdbed497462dd83
 SHA1 (patch-ad) = 08096aea74ab4871309124cd28a3b98d83cb322f
+SHA1 (patch-cd) = 60107e1857ff4177efebfbf33fcc2df2a50c61fc
diff -r 579bf9bbd083 -r 168d28b8f957 lang/python20/patches/patch-cd
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python20/patches/patch-cd    Mon Aug 18 09:14:13 2003 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-cd,v 1.1 2003/08/18 09:14:13 drochner Exp $
+
+--- Lib/distutils/command/build_ext.py.orig    Sat Mar 31 18:09:32 2001
++++ Lib/distutils/command/build_ext.py
+@@ -445,8 +445,17 @@ 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']))
+ 
+             self.compiler.link_shared_object(
+                 objects, ext_filename, 



Home | Main Index | Thread Index | Old Index