summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2008-10-07 02:02:00 (GMT)
committerSkip Montanaro <skip@pobox.com>2008-10-07 02:02:00 (GMT)
commita46ed915fa4b9b667fcc164a2762e69e184cbafe (patch)
treec38e42e53bc00b298d7e29d8d55b5cd977427c55 /setup.py
parent0d8372bdb97024ee989545b691358f1c9d0ad7f4 (diff)
downloadcpython-a46ed915fa4b9b667fcc164a2762e69e184cbafe.zip
cpython-a46ed915fa4b9b667fcc164a2762e69e184cbafe.tar.gz
cpython-a46ed915fa4b9b667fcc164a2762e69e184cbafe.tar.bz2
Pay attention to -R entries in LDFLAGS.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index da10fdf..36a0d77 100644
--- a/setup.py
+++ b/setup.py
@@ -320,12 +320,13 @@ class PyBuildExt(build_ext):
# the environment variable is not set even though the value were passed
# into configure and stored in the Makefile (issue found on OS X 10.3).
for env_var, arg_name, dir_list in (
+ ('LDFLAGS', '-R', self.compiler.runtime_library_dirs),
('LDFLAGS', '-L', self.compiler.library_dirs),
('CPPFLAGS', '-I', self.compiler.include_dirs)):
env_val = sysconfig.get_config_var(env_var)
if env_val:
# To prevent optparse from raising an exception about any
- # options in env_val that is doesn't know about we strip out
+ # options in env_val that it doesn't know about we strip out
# all double dashes and any dashes followed by a character
# that is not for the option we are dealing with.
#