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.

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