summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2015-12-01 13:20:11 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-12-01 13:20:11 (GMT)
commitc62b62966be738425096c981536ace5928e0ea7b (patch)
treec10d5500ab786baf231d35ebd618febcf7a2a00e /Makefile
parent29bd9bc6663d6bc8ced0fa32e6f55a7feb413151 (diff)
downloadmxe-c62b62966be738425096c981536ace5928e0ea7b.zip
mxe-c62b62966be738425096c981536ace5928e0ea7b.tar.gz
mxe-c62b62966be738425096c981536ace5928e0ea7b.tar.bz2
Makefile: build universal nonetwork.dylib
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 21e9919..6e8de71 100644
--- a/Makefile
+++ b/Makefile
@@ -423,13 +423,14 @@ ifeq ($(findstring darwin,$(BUILD)),)
else
NONET_LIB := $(PREFIX)/$(BUILD)/lib/nonetwork.dylib
PRELOAD := DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES='$(NONET_LIB)'
+ NONET_CFLAGS := -arch i386 -arch x86_64
endif
$(shell [ -d '$(PREFIX)/$(BUILD)/lib' ] || mkdir -p '$(PREFIX)/$(BUILD)/lib')
$(NONET_LIB): $(TOP_DIR)/tools/nonetwork.c
@echo '[build nonetwork lib]'
- @$(BUILD_CC) -shared -fPIC -o $@ $<
+ @$(BUILD_CC) -shared -fPIC $(NONET_CFLAGS) -o $@ $<
define PKG_TARGET_RULE
.PHONY: $(1)