Merge pull request #189908 from yvesf/fix-crosscompile-scanbd

This commit is contained in:
Artturi 2022-09-08 21:47:37 +03:00 committed by GitHub
commit 4a9b5f00b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;