mirror of https://git.wownero.com/dsc/mxe.git
libffi: build native version on darwin for glib
This commit is contained in:
parent
0c7a0c4bda
commit
55c488bb29
|
@ -0,0 +1 @@
|
|||
../libffi.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) :=
|
||||
|
|
|
@ -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
|
|
@ -51,8 +51,8 @@ define $(PKG)_BUILD_DARWIN
|
|||
--disable-dtrace \
|
||||
--disable-libmount \
|
||||
--with-pcre=internal \
|
||||
CPPFLAGS='-I$(BUILD_DIR).usr/include' \
|
||||
LDFLAGS='-L$(BUILD_DIR).usr/lib'
|
||||
CPPFLAGS='-I$(BUILD_DIR).usr/include -I$(PREFIX)/$(TARGET)/include' \
|
||||
LDFLAGS='-L$(BUILD_DIR).usr/lib -L$(PREFIX)/$(TARGET)/lib -lffi'
|
||||
$(MAKE) -C '$(BUILD_DIR)/glib' -j '$(JOBS)'
|
||||
$(MAKE) -C '$(BUILD_DIR)/gthread' -j '$(JOBS)'
|
||||
$(MAKE) -C '$(BUILD_DIR)/gmodule' -j '$(JOBS)'
|
||||
|
|
Loading…
Reference in New Issue