|
| 1 | +diff -Naur setuptools.orig/_distutils/unixccompiler.py setuptools/_distutils/unixccompiler.py |
| 2 | +--- setuptools.orig/_distutils/unixccompiler.py 2024-02-11 18:42:58 |
| 3 | ++++ setuptools/_distutils/unixccompiler.py 2024-02-11 18:45:30 |
| 4 | +@@ -253,14 +253,20 @@ |
| 5 | + building_exe = target_desc == CCompiler.EXECUTABLE |
| 6 | + linker = (self.linker_exe if building_exe else self.linker_so)[:] |
| 7 | + |
| 8 | +- if target_lang == "c++" and self.compiler_cxx: |
| 9 | +- env, linker_ne = _split_env(linker) |
| 10 | +- aix, linker_na = _split_aix(linker_ne) |
| 11 | +- _, compiler_cxx_ne = _split_env(self.compiler_cxx) |
| 12 | +- _, linker_exe_ne = _split_env(self.linker_exe) |
| 13 | ++ # Mirko: We need our LDSHARED also for c++ things, |
| 14 | ++ # otherwise our hack to have static libs does not work |
| 15 | ++ # properly. |
| 16 | ++ # We will likely remove all these caveats once PEP 730 |
| 17 | ++ # is implemented (and we will conform to it). |
| 18 | + |
| 19 | +- params = _linker_params(linker_na, linker_exe_ne) |
| 20 | +- linker = env + aix + compiler_cxx_ne + params |
| 21 | ++ #if target_lang == "c++" and self.compiler_cxx: |
| 22 | ++ # env, linker_ne = _split_env(linker) |
| 23 | ++ # aix, linker_na = _split_aix(linker_ne) |
| 24 | ++ # _, compiler_cxx_ne = _split_env(self.compiler_cxx) |
| 25 | ++ # _, linker_exe_ne = _split_env(self.linker_exe) |
| 26 | ++ |
| 27 | ++ # params = _linker_params(linker_na, linker_exe_ne) |
| 28 | ++ # linker = env + aix + compiler_cxx_ne + params |
| 29 | + |
| 30 | + linker = compiler_fixup(linker, ld_args) |
| 31 | + |
0 commit comments