libbs2b: support cross-compilation

prevent undefined reference to rpl_malloc when cross-compiling
This commit is contained in:
Rick van Schijndel 2021-08-18 21:56:15 +02:00
parent cadf0193dd
commit ac46099089

View file

@ -12,6 +12,13 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libsndfile ];
configureFlags = [
# Required for cross-compilation.
# Prevents linking error with 'undefined reference to rpl_malloc'.
# I think it's safe to assume that most libcs will properly handle
# realloc(NULL, size) and treat it like malloc(size).
"ac_cv_func_malloc_0_nonnull=yes"
];
hardeningDisable = [ "format" ];
meta = {