spandsp: support cross-compilation
This commit is contained in:
parent
cadf0193dd
commit
4a0c0ea321
1 changed files with 13 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{lib, stdenv, fetchurl, audiofile, libtiff}:
|
||||
{ lib, stdenv, fetchurl, audiofile, libtiff, buildPackages }:
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.0.6";
|
||||
pname = "spandsp";
|
||||
|
@ -8,7 +8,19 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
makeFlags = [
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
# This flag is required to prevent linking error in the cross-compilation case.
|
||||
# I think it's fair to assume that realloc(NULL, size) will return a valid memory
|
||||
# block for most libc implementation, so let's just assume that and hope for the best.
|
||||
"ac_cv_func_malloc_0_nonnull=yes"
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
propagatedBuildInputs = [audiofile libtiff];
|
||||
meta = {
|
||||
description = "A portable and modular SIP User-Agent with audio and video support";
|
||||
|
|
Loading…
Reference in a new issue