diff options
| author | Daniel Fullmer <danielrf12@gmail.com> | 2022-09-22 09:41:40 -0700 |
|---|---|---|
| committer | Daniel Fullmer <danielrf12@gmail.com> | 2022-09-22 09:41:40 -0700 |
| commit | 2946b819c209f4a1a9e87a725fc9e5ed2452c178 (patch) | |
| tree | 38e2a14169304403aa46fa294ff92a48c6985347 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | 3524da2f0ab911c9c65ac6fb34e87b9698a4e5fb (diff) | |
cc-wrapper: fix linking against GCC libs for non-GCC
Currently, clang++ statically links against libstdc++ instead of
dynamically links, because the -L path included in the cc-wrapper is
incorrect. The gccForLibs.lib output only contains the architecture
subdirectory if the target and host platform are not the same. (See
targetConfig set in gcc/<version>/default.nix and the gcc/builder.nix)
This fixes the incorrect linking by using the correct path for both the
cross and native cases. This also matches the cc_solib set above in
cc-wrapper/default.nix
Tested by compiling a simple cpp binary and noting that it now correctly
dynamically links against libstdc++, natively on x86_64 and arm64, as
well as x86_64 -> arm64 cross compilation.
Co-Authored-By: Sebastian Ullrich <sebasti@nullri.ch>
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
