build MacOS binaries in universal format. based on suggestion of @ThomasKing2014 at issue #482

This commit is contained in:
Nguyen Anh Quynh 2016-07-15 14:12:30 +08:00
parent 7af728bb0c
commit eea0b2d520

View file

@ -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)