From: Skip Montanaro Date: Tue, 7 Oct 2008 02:04:16 +0000 (+0000) Subject: backport X-Git-Tag: v2.6.1~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=593e66fd432d2cdd55b5b3113098cb571e70470b;p=thirdparty%2FPython%2Fcpython.git backport --- diff --git a/setup.py b/setup.py index da10fdfa8e60..36a0d77a73f2 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. #