libaom: support cross-compilation by setting AS
This commit is contained in:
parent
93d9e50336
commit
acf77c298e
@ -35,6 +35,8 @@ stdenv.mkDerivation rec {
|
||||
] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
|
||||
# CPU detection isn't supported on Darwin and breaks the aarch64-darwin build:
|
||||
"-DCONFIG_RUNTIME_CPU_DETECT=0"
|
||||
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
||||
"-DAS_EXECUTABLE=${stdenv.cc.targetPrefix}as"
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
|
Loading…
Reference in New Issue
Block a user