Cross-Platform build scripts for audio plugins
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.

30 lines
1.1KB

  1. diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py
  2. index f159586..004e89f 100644
  3. --- a/Lib/distutils/unixccompiler.py
  4. +++ b/Lib/distutils/unixccompiler.py
  5. @@ -200,6 +200,11 @@ class UnixCCompiler(CCompiler):
  6. if sys.platform == 'darwin':
  7. linker = _osx_support.compiler_fixup(linker, ld_args)
  8. +
  9. + if target_lang == "c++" and self.compiler_cxx:
  10. + ld_args += linker[i+offset+1:]
  11. + else:
  12. + ld_args += linker[1:]
  13. self.spawn(linker + ld_args)
  14. except DistutilsExecError as msg:
  15. diff --git a/setup.py b/setup.py
  16. index 3a7a2e7..88e116a 100644
  17. --- a/setup.py
  18. +++ b/setup.py
  19. @@ -2289,7 +2289,7 @@ class PyBuildExt(build_ext):
  20. # poor man's shlex, the re module is not available yet.
  21. value = config_vars.get(name)
  22. if not value:
  23. - return ()
  24. + return []
  25. # This trick works because ax_check_openssl uses --libs-only-L,
  26. # --libs-only-l, and --cflags-only-I.
  27. value = ' ' + value