From 22b6046192abd318d6d9a5b140144dbbe77abdad Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Tue, 18 Oct 2022 03:27:24 -0600 Subject: [PATCH] glibc: Don't inject CoreFoundation RUNPATH on Darwin Ref: #137877 --- pkgs/development/libraries/glibc/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/glibc/default.nix b/pkgs/development/libraries/glibc/default.nix index 728b97d2f5f4..5f581d7493e3 100644 --- a/pkgs/development/libraries/glibc/default.nix +++ b/pkgs/development/libraries/glibc/default.nix @@ -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