pkgsrc/lang/python32/patches/patch-ab
obache 964f9ca133 Import python32-3.2.3 as lang/python32.
Python is an interpreted, interactive, object-oriented
programming language that combines remarkable power with
very clear syntax. For an introduction to programming in
Python you are referred to the Python Tutorial. The
Python Library Reference documents built-in and standard
types, constants, functions and modules. Finally, the
Python Reference Manual describes the syntax and semantics
of the core language in (perhaps too) much detail.

Python's basic power can be extended with your own modules
written in C or C++. On most systems such modules may be
dynamically loaded. Python is also adaptable as an exten-
sion language for existing applications. See the internal
documentation for hints.

This package provides Python version 3.2.x.
2012-05-06 13:12:09 +00:00

24 lines
1,022 B
Text

$NetBSD: patch-ab,v 1.1.1.1 2012/05/06 13:12:12 obache Exp $
--- Lib/distutils/command/build_ext.py.orig 2012-02-23 20:22:44.000000000 +0000
+++ Lib/distutils/command/build_ext.py
@@ -523,8 +523,19 @@ 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.get('LDFLAGS'):
+ # extra_args = list(extra_args)
+ # extra_args.extend(string.split(os.environ['LDFLAGS']))
+
# Detect target language, if not provided
language = ext.language or self.compiler.detect_language(sources)