mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
Merge pull request #106761 from Atemu/fix/cifs-utils-cross
cifs-utils: don't check for AC_FUNC_MALLOC when cross compiling
This commit is contained in:
commit
079535f0df
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, autoreconfHook, docutils, pkgconfig
|
{ stdenv, lib, fetchurl, autoreconfHook, docutils, pkgconfig
|
||||||
, kerberos, keyutils, pam, talloc }:
|
, kerberos, keyutils, pam, talloc }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -14,6 +14,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ kerberos keyutils pam talloc ];
|
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" ];
|
makeFlags = [ "root_sbindir=$(out)/sbin" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user