libaom: support cross-compilation by setting AS

This commit is contained in:
Rick van Schijndel 2021-07-28 23:51:19 +02:00
parent 93d9e50336
commit acf77c298e

View File

@ -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 = ''