3
0
Fork 0
forked from mirrors/nixpkgs

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.
This commit is contained in:
Rick van Schijndel 2022-04-11 20:15:01 +02:00 committed by Alyssa Ross
parent 52843aefea
commit 4b80acb94c

View file

@ -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 = ''