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:
parent
e9158eca70
commit
46224b1e19
1 changed files with 7 additions and 1 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue