quirc: fix cross build

This commit is contained in:
FliegendeWurst
2025-01-20 17:53:53 +01:00
parent d7104f1822
commit 38e021fa44
+4
View File
@@ -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" ""
'';