mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
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
|
||||
, enableGPL ? true # ToDo: some additional default stuff may need GPL
|
||||
, enableUnfree ? faacSupport
|
||||
, hostPlatform
|
||||
}:
|
||||
|
||||
assert faacSupport -> enableUnfree;
|
||||
|
@ -107,10 +108,10 @@ let
|
|||
crossAttrs = {
|
||||
configurePlatforms = [];
|
||||
configureFlags = configureFlags ++ [
|
||||
"--cross-prefix=${stdenv.cross.config}-"
|
||||
"--cross-prefix=${stdenv.cc.prefix}"
|
||||
"--enable-cross-compile"
|
||||
"--target_os=linux"
|
||||
"--arch=${stdenv.cross.arch}"
|
||||
"--arch=${hostPlatform.arch}"
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue