mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 03:15:56 +03:00
nilfs-utils: fix cross-compilation issue caused by AC_FUNC_MALLOC
This commit is contained in:
parent
57de25b319
commit
c9c0e7c1b0
@ -35,7 +35,13 @@ stdenv.mkDerivation rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
configureFlags = [ "--with-libmount" ];
|
configureFlags = [
|
||||||
|
"--with-libmount"
|
||||||
|
] ++ 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"
|
||||||
|
];
|
||||||
|
|
||||||
# FIXME: https://github.com/NixOS/patchelf/pull/98 is in, but stdenv
|
# FIXME: https://github.com/NixOS/patchelf/pull/98 is in, but stdenv
|
||||||
# still doesn't use it
|
# still doesn't use it
|
||||||
|
Loading…
Reference in New Issue
Block a user