1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00

stdenv cross adapter: Get rid of extra propagatation of buildInputs

Binutils is patched so we don't rely on `--rpath-link`.
This commit is contained in:
John Ericson 2017-12-22 16:17:15 -05:00
parent c15c449236
commit 1cde06acf6

View file

@ -74,8 +74,7 @@ rec {
};
in stdenv // {
mkDerivation =
{ buildInputs ? [], nativeBuildInputs ? []
, propagatedBuildInputs ? [], propagatedNativeBuildInputs ? []
{ nativeBuildInputs ? []
, selfNativeBuildInput ? args.crossAttrs.selfNativeBuildInput or false
, ...
} @ args:
@ -98,14 +97,6 @@ rec {
++ stdenv.lib.optional hostPlatform.isAarch64 pkgs.updateAutotoolsGnuConfigScriptsHook
;
# Cross-linking dynamic libraries, every buildInput should
# be propagated because ld needs the -rpath-link to find
# any library needed to link the program dynamically at
# loader time. ld(1) explains it.
buildInputs = [];
propagatedBuildInputs = propagatedBuildInputs ++ buildInputs;
propagatedNativeBuildInputs = propagatedNativeBuildInputs;
crossConfig = hostPlatform.config;
} // args.crossAttrs or {});
};