Merge pull request #136773 from Mindavi/cramfsprogs/cross

cramfsprogs: support cross-compilation
This commit is contained in:
Jörg Thalheim 2021-09-05 16:24:07 +01:00 committed by GitHub
commit 87d338542b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,10 @@ stdenv.mkDerivation rec {
# So patch the "missing include" bug ourselves.
patches = [ ./include-sysmacros.patch ];
makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
];
installPhase = ''
install --target $out/bin -D cramfsck mkcramfs
'';