Skip to content

Commit

Permalink
libudev-zero: fix cross compilation
Browse files Browse the repository at this point in the history
libudev-zero's `Makefile` sets `AR=ar`; we must override this when
cross compiling.  With this commit,
`pkgsCross.aarch64-multiplatform.libudev-zero` builds.
  • Loading branch information
Adam Joseph authored and alyssais committed May 15, 2023
1 parent a0ca431 commit 8b72abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/libraries/libudev-zero/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-SU1pPmLLeTWZe5ybhmDplFw6O/vpEjFAKgfKDl0RS4U=";
};

makeFlags = [ "PREFIX=$(out)" ];
makeFlags = [ "PREFIX=$(out)" "AR=${stdenv.cc.targetPrefix}ar" ];

# Just let the installPhase build stuff, because there's no
# non-install target that builds everything anyway.
Expand Down

0 comments on commit 8b72abd

Please sign in to comment.