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.

18 lines
711B

  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,12 @@ class UnixCCompiler(CCompiler):
  6. if sys.platform == 'darwin':
  7. linker = _osx_support.compiler_fixup(linker, ld_args)
  8. + elif target_lang == "c++" and self.compiler_cxx:
  9. + ld_args += linker[1:]
  10. + linker = [linker[0]]
  11. + else:
  12. + ld_args += linker[1:]
  13. + linker = [linker[0]]
  14. self.spawn(linker + ld_args)
  15. except DistutilsExecError as msg: