Unverified Commit 7e84a717 authored by 7c6f434c's avatar 7c6f434c Committed by GitHub
Browse files

quirc: fix cross build (#375345)

parents 70dab40f 38e021fa
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -23,8 +23,12 @@ stdenv.mkDerivation (finalAttrs: {
  };

  postPatch = ''
    # use correct pkg-config / ar / ranlib for cross
    # don't try to change ownership
    substituteInPlace Makefile \
      --replace-fail "pkg-config " "${stdenv.cc.targetPrefix}pkg-config " \
      --replace-fail "ar " "${stdenv.cc.targetPrefix}ar " \
      --replace-fail "ranlib " "${stdenv.cc.targetPrefix}ranlib " \
      --replace-fail "-o root" "" \
      --replace-fail "-g root" ""
  '';