You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
758 B

  1. --- a/setup.py
  2. +++ b/setup.py
  3. @@ -631,8 +631,9 @@ class PyBuildExt(build_ext):
  4. # directly since an inconsistently reproducible issue comes up where
  5. # the environment variable is not set even though the value were passed
  6. # into configure and stored in the Makefile (issue found on OS X 10.3).
  7. + rt_lib_dirs = [] if CROSS_COMPILING else self.compiler.runtime_library_dirs
  8. for env_var, arg_name, dir_list in (
  9. - ('LDFLAGS', '-R', self.compiler.runtime_library_dirs),
  10. + ('LDFLAGS', '-R', rt_lib_dirs),
  11. ('LDFLAGS', '-L', self.compiler.library_dirs),
  12. ('CPPFLAGS', '-I', self.compiler.include_dirs)):
  13. env_val = sysconfig.get_config_var(env_var)