From eea0b2d520dd3d40f35fa887913066d6e413a5a2 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Fri, 15 Jul 2016 14:12:30 +0800 Subject: [PATCH] build MacOS binaries in universal format. based on suggestion of @ThomasKing2014 at issue #482 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index e2216003..1015d324 100644 --- a/Makefile +++ b/Makefile @@ -105,8 +105,10 @@ ifeq ($(IS_APPLE),1) EXT = dylib VERSION_EXT = $(API_MAJOR).$(EXT) $(LIBNAME)_LDFLAGS += -dynamiclib -install_name lib$(LIBNAME).$(VERSION_EXT) -current_version $(PKG_MAJOR).$(PKG_MINOR).$(PKG_EXTRA) -compatibility_version $(PKG_MAJOR).$(PKG_MINOR) +$(LIBNAME)_LDFLAGS += -m32 -arch i386 -m64 -arch x86_64 AR_EXT = a UNICORN_CFLAGS += -fvisibility=hidden +UNICORN_CFLAGS += -m32 -arch i386 -m64 -arch x86_64 else # Cygwin? IS_CYGWIN := $(shell $(CC) -dumpmachine | grep -i cygwin | wc -l)