From b3c9ad0c6c003cbd97df201b91e4ec19a73c891d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 3 Sep 2024 12:45:10 +0200 Subject: [PATCH] libx86emu: fix cross compilation --- pkgs/development/libraries/libx86emu/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libx86emu/default.nix b/pkgs/development/libraries/libx86emu/default.nix index c4df61bd22bb..4ace07d2cf0e 100644 --- a/pkgs/development/libraries/libx86emu/default.nix +++ b/pkgs/development/libraries/libx86emu/default.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { substituteInPlace Makefile --replace "/usr" "/" ''; - buildFlags = [ "shared" ]; + buildFlags = [ "shared" "CC=${stdenv.cc.targetPrefix}cc" ]; enableParallelBuilding = true; installFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];