diff options
author | Rick van Schijndel <rol3517@gmail.com> | 2021-08-18 21:56:15 +0200 |
---|---|---|
committer | Rick van Schijndel <rol3517@gmail.com> | 2021-08-18 21:56:15 +0200 |
commit | ac46099089b5c8311ee630b746b8dd6babae6253 (patch) | |
tree | be6405cf4536d4c47c3202dd82f5d3c942a572eb | |
parent | cadf0193ddcc2ac6a3675c7751623aef287a6795 (diff) | |
download | nixpkgs-ac46099089b5c8311ee630b746b8dd6babae6253.tar nixpkgs-ac46099089b5c8311ee630b746b8dd6babae6253.tar.gz nixpkgs-ac46099089b5c8311ee630b746b8dd6babae6253.tar.bz2 nixpkgs-ac46099089b5c8311ee630b746b8dd6babae6253.tar.lz nixpkgs-ac46099089b5c8311ee630b746b8dd6babae6253.tar.xz nixpkgs-ac46099089b5c8311ee630b746b8dd6babae6253.tar.zst nixpkgs-ac46099089b5c8311ee630b746b8dd6babae6253.zip |
libbs2b: support cross-compilation
prevent undefined reference to rpl_malloc when cross-compiling
-rw-r--r-- | pkgs/development/libraries/audio/libbs2b/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/libraries/audio/libbs2b/default.nix b/pkgs/development/libraries/audio/libbs2b/default.nix index 11135b14fd4..720823852b0 100644 --- a/pkgs/development/libraries/audio/libbs2b/default.nix +++ b/pkgs/development/libraries/audio/libbs2b/default.nix @@ -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 = { |