mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
call ld with correct -dynamic-linker argument
It looks like Debian/Ubuntu are doing it correctly.
See https://sourceware.org/glibc/wiki/ABIList
NixOS has a clang patch which disables adding the -dynamic-linker
argument to ld in order to ensure "purity" - that is - that all paths
are in /nix/store/*.
See 6b1651928e/pkgs/development/compilers/llvm/3.7/clang/purity.patch
So, I changed the environment variable to ZIG_NATIVE_DYNAMIC_LINKER and allow
it to be set to blank. And it only matters when building for the native target,
since you might want to build for other targets without modifying your
environment.
closes #1
This commit is contained in:
parent
bd5cb3e50e
commit
4060ae93fb
2 changed files with 135 additions and 6 deletions
135
src/codegen.cpp
135
src/codegen.cpp
Loading…
Add table
Add a link
Reference in a new issue