cifs-utils: don't check for AC_FUNC_MALLOC when cross compiling

Produces "undefined reference to "rpl_malloc"" and fails the build

Apparently it's a runtime check (https://github.com/LLNL/ior/issues/4)
This commit is contained in:
Atemu 2020-12-12 07:24:38 +01:00
parent e9158eca70
commit 46224b1e19

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, autoreconfHook, docutils, pkgconfig
{ stdenv, lib, fetchurl, autoreconfHook, docutils, pkgconfig
, kerberos, keyutils, pam, talloc }:
stdenv.mkDerivation rec {
@ -14,6 +14,12 @@ stdenv.mkDerivation rec {
buildInputs = [ kerberos keyutils pam talloc ];
configureFlags = stdenv.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"
];
makeFlags = [ "root_sbindir=$(out)/sbin" ];
meta = with stdenv.lib; {