scanbd: fix cross compile configureFlags

This commit is contained in:
Yves Fischer 2022-09-05 22:28:38 +02:00
parent e8e48a7a53
commit 1b82360284

View file

@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
"--enable-udev"
"--with-scanbdconfdir=/etc/scanbd"
"--with-systemdsystemunitdir=$out/lib/systemd/system"
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
# AC_FUNC_MALLOC is broken on cross builds.
"ac_cv_func_malloc_0_nonnull=yes"
"ac_cv_func_realloc_0_nonnull=yes"
];
enableParallelBuilding = true;