summaryrefslogtreecommitdiff
path: root/lang/python23/patches/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python23/patches/patch-ae')
-rw-r--r--lang/python23/patches/patch-ae34
1 files changed, 12 insertions, 22 deletions
diff --git a/lang/python23/patches/patch-ae b/lang/python23/patches/patch-ae
index 9bd772a6351..e3e2b097710 100644
--- a/lang/python23/patches/patch-ae
+++ b/lang/python23/patches/patch-ae
@@ -1,23 +1,13 @@
-$NetBSD: patch-ae,v 1.1.1.1 2003/08/04 08:25:23 drochner Exp $
+$NetBSD: patch-ae,v 1.2 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 2003-08-03 13:20:35.000000000 +0200
-@@ -475,8 +475,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']))
-+
- # Detect target language, if not provided
- language = ext.language or self.compiler.detect_language(sources)
-
+--- Lib/distutils/command/build_scripts.py.orig 2003-06-27 21:33:38.000000000 +0200
++++ Lib/distutils/command/build_scripts.py
+@@ -99,7 +99,7 @@ class build_scripts (Command):
+ outf.write("#!%s%s\n" %
+ (os.path.join(
+ sysconfig.get_config_var("BINDIR"),
+- "python" + sysconfig.get_config_var("EXE")),
++ "python%s" % sys.version[:3] + sysconfig.get_config_var("EXE")),
+ post_interp))
+ outf.writelines(f.readlines())
+ outf.close()