glibc: Don't inject CoreFoundation RUNPATH on Darwin

Ref: #137877
This commit is contained in:
Zhaofeng Li 2022-10-18 03:27:24 -06:00 committed by Yt
parent 46872026bd
commit 22b6046192

View file

@ -38,6 +38,9 @@ callPackage ./common.nix { inherit stdenv; } {
# Apparently --bindir is not respected.
makeFlagsArray+=("bindir=$bin/bin" "sbindir=$bin/sbin" "rootsbindir=$bin/sbin")
'' + lib.optionalString stdenv.buildPlatform.isDarwin ''
# ld-wrapper will otherwise attempt to inject CoreFoundation into ld-linux's RUNPATH
export NIX_COREFOUNDATION_RPATH=
'';
# The pie, stackprotector and fortify hardening flags are autodetected by