Makefile: -share option is not for Darwin

This commit is contained in:
Nguyen Anh Quynh 2014-03-30 22:25:16 +08:00
parent e7314e99b2
commit 927b2add31
1 changed files with 4 additions and 2 deletions

View File

@ -26,8 +26,6 @@ ifneq (,$(findstring yes,$(CAPSTONE_DIET)))
CFLAGS += -DCAPSTONE_DIET -Os
endif
LDFLAGS += -shared
PREFIX ?= /usr
DESTDIR ?=
INCDIR = $(DESTDIR)$(PREFIX)/include
@ -44,6 +42,10 @@ endif
endif
endif
ifneq ($(UNAME_S),Darwin)
LDFLAGS += -shared
endif
LIBDATADIR = $(LIBDIR)
ifeq ($(UNAME_S), FreeBSD)
LIBDATADIR = $(DESTDIR)$(PREFIX)/libdata