summaryrefslogtreecommitdiffstats
path: root/contrib/fribidi
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2020-10-30 13:47:51 +0100
committerDamiano Galassi <[email protected]>2020-11-05 09:49:16 +0100
commit03bdef6441b16291861285c88585bf0c51b71d3f (patch)
tree654bf83fbc708cffb4fb49a69d303f3a89703a5c /contrib/fribidi
parent77b30ad88ce789b2529e617d07ad8375392d36f0 (diff)
contrib: macOS arm and intel cross compilation.
Diffstat (limited to 'contrib/fribidi')
-rw-r--r--contrib/fribidi/module.defs7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/fribidi/module.defs b/contrib/fribidi/module.defs
index 49e8c4298..63316a689 100644
--- a/contrib/fribidi/module.defs
+++ b/contrib/fribidi/module.defs
@@ -8,3 +8,10 @@ FRIBIDI.FETCH.basename = fribidi-1.0.7.tar.gz
FRIBIDI.CONFIGURE.bootstrap = rm -fr aclocal.m4 autom4te.cache configure; autoreconf -I m4 -fiv;
+ifeq ($(HOST.system),darwin)
+ FRIBIDI.CONFIGURE.extra = CFLAGS_FOR_BUILD="-arch $(BUILD.machine)"
+ ifneq ($(HOST.machine),$(BUILD.machine))
+ FRIBIDI.CONFIGURE.args.host = --host=$(HOST.machine:arm64=aarch64)-$(HOST.vendor)-$(HOST.system)
+ FRIBIDI.CONFIGURE.args.build = --build=$(BUILD.machine:arm64=aarch64)-$(BUILD.vendor)-$(BUILD.system)
+ endif
+endif