Unverified Commit 3d243905 authored by Jared Baur's avatar Jared Baur
Browse files

vboot_reference: use --replace-fail with substituteInPlace

parent c61d94fd
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -31,13 +31,11 @@ stdenv.mkDerivation {

  postPatch = ''
    substituteInPlace Makefile \
      --replace "ar qc" '${stdenv.cc.bintools.targetPrefix}ar qc'
      --replace-fail "ar qc" '${stdenv.cc.bintools.targetPrefix}ar qc'
    # Drop flag unrecognized by GCC 9 (for e.g. aarch64-linux)
    substituteInPlace Makefile \
      --replace "-Wno-unknown-warning" ""
  '';
      --replace-fail "-Wno-unknown-warning" ""

  preBuild = ''
    patchShebangs scripts
  '';