1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Merge #273843: darwin/make-bootstrap-tools.nix: set -headerpad_max_install_names

This commit is contained in:
Vladimír Čunát 2023-12-13 19:02:52 +01:00
commit c15b5810ff
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -32,11 +32,16 @@ let cross = if crossSystem != null
in with import pkgspath ({ inherit localSystem overlays; } // cross // custom-bootstrap);
rec {
coreutils_ = coreutils.override (args: {
coreutils_ = (coreutils.override (args: {
# We want coreutils without ACL support.
aclSupport = false;
# Cannot use a single binary build, or it gets dynamically linked against gmp.
singleBinary = false;
})).overrideAttrs (oa: {
# Increase header size to be able to inject extra RPATHs. Otherwise
# x86_64-darwin build fails as:
# https://cache.nixos.org/log/g5wyq9xqshan6m3kl21bjn1z88hx48rh-stdenv-bootstrap-tools.drv
NIX_LDFLAGS = (oa.NIX_LDFLAGS or "") + " -headerpad_max_install_names";
});
cctools_ = darwin.cctools;