libav: Don't use stdenv.cross
This commit is contained in:
parent
de1125ea2c
commit
58196b607e
1 changed files with 3 additions and 2 deletions
|
@ -13,6 +13,7 @@
|
||||||
, SDL # only for avplay in $bin, adds nontrivial closure to it
|
, SDL # only for avplay in $bin, adds nontrivial closure to it
|
||||||
, enableGPL ? true # ToDo: some additional default stuff may need GPL
|
, enableGPL ? true # ToDo: some additional default stuff may need GPL
|
||||||
, enableUnfree ? faacSupport
|
, enableUnfree ? faacSupport
|
||||||
|
, hostPlatform
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert faacSupport -> enableUnfree;
|
assert faacSupport -> enableUnfree;
|
||||||
|
@ -107,10 +108,10 @@ let
|
||||||
crossAttrs = {
|
crossAttrs = {
|
||||||
configurePlatforms = [];
|
configurePlatforms = [];
|
||||||
configureFlags = configureFlags ++ [
|
configureFlags = configureFlags ++ [
|
||||||
"--cross-prefix=${stdenv.cross.config}-"
|
"--cross-prefix=${stdenv.cc.prefix}"
|
||||||
"--enable-cross-compile"
|
"--enable-cross-compile"
|
||||||
"--target_os=linux"
|
"--target_os=linux"
|
||||||
"--arch=${stdenv.cross.arch}"
|
"--arch=${hostPlatform.arch}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue