diff --git a/pkgs/development/compilers/zig/passthru.nix b/pkgs/development/compilers/zig/passthru.nix index 802d53c16178..439df42d31d5 100644 --- a/pkgs/development/compilers/zig/passthru.nix +++ b/pkgs/development/compilers/zig/passthru.nix @@ -22,10 +22,7 @@ nixSupport.cc-cflags = [ "-target" "${stdenv.targetPlatform.system}-${stdenv.targetPlatform.parsed.abi.name}" - ] - ++ lib.optional ( - stdenv.targetPlatform.isLinux && !(stdenv.targetPlatform.isStatic or false) - ) "-Wl,-dynamic-linker=${targetPackages.stdenv.cc.bintools.dynamicLinker}"; + ]; }; stdenv = overrideCC stdenv zig.cc;