diff options
author | Damiano Galassi <[email protected]> | 2020-10-30 13:47:51 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2020-11-05 09:49:16 +0100 |
commit | 03bdef6441b16291861285c88585bf0c51b71d3f (patch) | |
tree | 654bf83fbc708cffb4fb49a69d303f3a89703a5c /contrib/libopus | |
parent | 77b30ad88ce789b2529e617d07ad8375392d36f0 (diff) |
contrib: macOS arm and intel cross compilation.
Diffstat (limited to 'contrib/libopus')
-rw-r--r-- | contrib/libopus/module.defs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/libopus/module.defs b/contrib/libopus/module.defs index 3f767c32f..da684b99e 100644 --- a/contrib/libopus/module.defs +++ b/contrib/libopus/module.defs @@ -12,4 +12,11 @@ LIBOPUS.CONFIGURE.extra = --disable-doc --disable-extra-programs # optimizations are turned off. LIBOPUS.GCC.args.extra += -DOPUS_WILL_BE_SLOW -LIBOPUS.CONFIGURE.bootstrap = rm -fr aclocal.m4 autom4te.cache configure; autoreconf -fiv; +ifeq (darwin,$(HOST.system)) + ifneq ($(HOST.machine),$(BUILD.machine)) + LIBOPUS.CONFIGURE.extra += --host=$(HOST.machine:arm64=aarch64)-$(HOST.vendor)-$(HOST.system) + LIBOPUS.CONFIGURE.args.build = --build=$(BUILD.machine:arm64=aarch64)-$(BUILD.vendor)-$(BUILD.system) + endif +endif + +LIBOPUS.CONFIGURE.bootstrap = rm -fr aclocal.m4 autom4te.cache configure; autoreconf -fiv;
\ No newline at end of file |