From 03bdef6441b16291861285c88585bf0c51b71d3f Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Fri, 30 Oct 2020 13:47:51 +0100 Subject: contrib: macOS arm and intel cross compilation. --- contrib/libopus/module.defs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'contrib/libopus') 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 -- cgit v1.2.3