From 4b80acb94c8a5d34cb4b450e1679f885699a6c6e Mon Sep 17 00:00:00 2001 From: Rick van Schijndel Date: Mon, 11 Apr 2022 20:15:01 +0200 Subject: [PATCH] libcap: fix cross-compilation support Between libcap 2.51 and 2.52, the CROSS_COMPILE flag appears in more places. Maybe it was already required before, but now the build fails due to it not being set. Set it unconditionally. --- pkgs/os-specific/linux/libcap/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/os-specific/linux/libcap/default.nix b/pkgs/os-specific/linux/libcap/default.nix index 750e26313cfe..1fa887dd2a3c 100644 --- a/pkgs/os-specific/linux/libcap/default.nix +++ b/pkgs/os-specific/linux/libcap/default.nix @@ -28,6 +28,7 @@ stdenv.mkDerivation rec { "PAM_CAP=${if usePam then "yes" else "no"}" "BUILD_CC=$(CC_FOR_BUILD)" "CC:=$(CC)" + "CROSS_COMPILE=${stdenv.cc.targetPrefix}" ] ++ lib.optional isStatic "SHARED=no"; postPatch = ''