support dylib versioning for OSX

This commit is contained in:
Nguyen Anh Quynh 2014-03-25 11:31:32 +08:00
parent 1c9b1a6a35
commit a8fb48c5b3

View File

@ -153,6 +153,8 @@ VERSION_EXT =
ifeq ($(UNAME_S),Darwin)
EXT = dylib
VERSION_EXT = $(API_MAJOR).$(EXT)
#LDFLAGS += -install_name lib$(LIBNAME).$(VERSION_EXT) -current_version $(API_MAJOR) -compatibility_version $(API_MAJOR)
LDFLAGS += -install_name lib$(LIBNAME).$(VERSION_EXT) -current_version $(API_MAJOR).1 -compatibility_version $(API_MAJOR).1
AR_EXT = a
ifneq ($(USE_SYS_DYN_MEM),yes)
# remove string check because OSX kernel complains about missing symbols