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.
main
Rick van Schijndel 2 years ago committed by Alyssa Ross
parent 52843aefea
commit 4b80acb94c
  1. 1
      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 = ''

Loading…
Cancel
Save