-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 https://github.com/NixOS/nixpkgs/blob/6b1651928e943bdb0d69a20764fdaae294e92dc1/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
- Loading branch information
Showing
2 changed files
with
135 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters