]> granicus.if.org Git - python/commitdiff
merge from trunk
authorSkip Montanaro <skip@pobox.com>
Tue, 7 Oct 2008 02:51:48 +0000 (02:51 +0000)
committerSkip Montanaro <skip@pobox.com>
Tue, 7 Oct 2008 02:51:48 +0000 (02:51 +0000)
setup.py

index 50034ff6711d2ed9b1dda1be21acd0e7185447c7..b89896c86014f9ea26020dded63e1bd985e79d86 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -319,12 +319,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.
                 #