git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #69039 from samueldr/cross/vboot_reference

vboot_reference: use the right ar when cross-compiling

commitca99e4562a650060d82b525b6e95c376e4ec8ae5 authorMatthew Bauer <mjbauer95@gmail.com> dateWed 18 Sep 2019, 20:43 (7 years ago) parent9d09cf04885972
1 file changed+5
pkgs/tools/system/vboot_reference/default.nix+5
pkgs/tools/system/vboot_reference/default.nix+5
@@ -19,6 +19,11 @@ stdenv.mkDerivation rec {
1919
2020 patches = [ ./dont_static_link.patch ];
2121
22+ postPatch = ''
23+ substituteInPlace Makefile \
24+ --replace "ar qc" '${stdenv.cc.bintools.targetPrefix}ar qc'
25+ '';
26+
2227 preBuild = ''
2328 patchShebangs scripts
2429 '';