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/fribidi | |
parent | 77b30ad88ce789b2529e617d07ad8375392d36f0 (diff) |
contrib: macOS arm and intel cross compilation.
Diffstat (limited to 'contrib/fribidi')
-rw-r--r-- | contrib/fribidi/module.defs | 7 |
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 |