summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2018-02-27 01:15:48 (GMT)
committerTony Theodore <tonyt@logyst.com>2018-02-27 01:15:48 (GMT)
commit55c488bb2947ee61e0e7d0c5900d4471f1c59ded (patch)
treea062c823b460e2269f724e6d2d2b726b6bed620f /plugins
parent0c7a0c4bda07ce0310cefd11e39dfdf7f3896560 (diff)
downloadmxe-55c488bb2947ee61e0e7d0c5900d4471f1c59ded.zip
mxe-55c488bb2947ee61e0e7d0c5900d4471f1c59ded.tar.gz
mxe-55c488bb2947ee61e0e7d0c5900d4471f1c59ded.tar.bz2
libffi: build native version on darwin for glib
Diffstat (limited to 'plugins')
l---------plugins/native/darwin/libffi.mk1
-rw-r--r--plugins/native/darwin/overrides.mk2
-rw-r--r--plugins/native/libffi.mk13
3 files changed, 15 insertions, 1 deletions
diff --git a/plugins/native/darwin/libffi.mk b/plugins/native/darwin/libffi.mk
new file mode 120000
index 0000000..b328098
--- /dev/null
+++ b/plugins/native/darwin/libffi.mk
@@ -0,0 +1 @@
+../libffi.mk \ No newline at end of file
diff --git a/plugins/native/darwin/overrides.mk b/plugins/native/darwin/overrides.mk
index 2a2cd89..f5b45a7 100644
--- a/plugins/native/darwin/overrides.mk
+++ b/plugins/native/darwin/overrides.mk
@@ -1,6 +1,6 @@
# This file is part of MXE. See LICENSE.md for licensing information.
# additional modifications to control native builds
-glib_DEPS_$(BUILD) :=
+glib_DEPS_$(BUILD) := libffi zlib
gettext_BUILD_$(BUILD) :=
libiconv_BUILD_$(BUILD) :=
diff --git a/plugins/native/libffi.mk b/plugins/native/libffi.mk
new file mode 100644
index 0000000..0c9b2fe
--- /dev/null
+++ b/plugins/native/libffi.mk
@@ -0,0 +1,13 @@
+# This file is part of MXE. See LICENSE.md for licensing information.
+
+PKG := libffi
+$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS)
+$(PKG)_DEPS_$(BUILD) :=
+
+define $(PKG)_BUILD_$(BUILD)
+ # build and install the library
+ cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
+ $(MXE_CONFIGURE_OPTS)
+ $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
+ $(MAKE) -C '$(BUILD_DIR)' -j 1 install
+endef