summaryrefslogtreecommitdiffstats
path: root/contrib/libopus
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libopus')
-rw-r--r--contrib/libopus/module.defs9
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