diff options
author | Adam Joseph <adam@westernsemico.com> | 2023-05-14 23:28:10 -0700 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-05-15 09:31:57 +0000 |
commit | 8b72abdbe8a57191b36f9901f36d1a7eecd59ec0 (patch) | |
tree | 04540a1f6d45c9e4a1ad12e816837608ad7b2d65 | |
parent | a0ca431141b4ff32509f791a91a0c01e07fbd37e (diff) |
libudev-zero: fix cross compilation
libudev-zero's `Makefile` sets `AR=ar`; we must override this when cross compiling. With this commit, `pkgsCross.aarch64-multiplatform.libudev-zero` builds.
-rw-r--r-- | pkgs/development/libraries/libudev-zero/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libudev-zero/default.nix b/pkgs/development/libraries/libudev-zero/default.nix index 48f5e1fb63ee0..1a3bdfaa02b31 100644 --- a/pkgs/development/libraries/libudev-zero/default.nix +++ b/pkgs/development/libraries/libudev-zero/default.nix @@ -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. |