fix soname to use CS_API_MAJOR for library versioning (linux)

This commit is contained in:
Nguyen Anh Quynh 2014-03-11 11:34:28 +08:00
parent 56db6390ec
commit a5f42cf59e

View File

@ -178,7 +178,7 @@ else
# Linux, *BSD
EXT = so
AR_EXT = a
API_MAJOR=$(shell echo `grep -e CS_API_MAJOR include/capstone.h | grep -v = | awk '{print $$2}'` | awk '{print $$1}')
API_MAJOR=$(shell echo `grep -e CS_API_MAJOR include/capstone.h | grep -v = | awk '{print $$3}'` | awk '{print $$1}')
LDFLAGS += -Wl,-soname,lib$(LIBNAME)$(API_MAJOR)
endif