mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 19:16:11 +00:00
libbs2b: support cross-compilation
prevent undefined reference to rpl_malloc when cross-compiling
This commit is contained in:
parent
cadf0193dd
commit
ac46099089
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user