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:
parent
c15c449236
commit
1cde06acf6
@ -74,8 +74,7 @@ rec {
|
|||||||
};
|
};
|
||||||
in stdenv // {
|
in stdenv // {
|
||||||
mkDerivation =
|
mkDerivation =
|
||||||
{ buildInputs ? [], nativeBuildInputs ? []
|
{ nativeBuildInputs ? []
|
||||||
, propagatedBuildInputs ? [], propagatedNativeBuildInputs ? []
|
|
||||||
, selfNativeBuildInput ? args.crossAttrs.selfNativeBuildInput or false
|
, selfNativeBuildInput ? args.crossAttrs.selfNativeBuildInput or false
|
||||||
, ...
|
, ...
|
||||||
} @ args:
|
} @ args:
|
||||||
@ -98,14 +97,6 @@ rec {
|
|||||||
++ stdenv.lib.optional hostPlatform.isAarch64 pkgs.updateAutotoolsGnuConfigScriptsHook
|
++ 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;
|
crossConfig = hostPlatform.config;
|
||||||
} // args.crossAttrs or {});
|
} // args.crossAttrs or {});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user