Makefile: -share option is not for Darwin

This commit is contained in:
Nguyen Anh Quynh 2014-03-30 22:25:16 +08:00
parent c7d7884cf7
commit 2d201349fa

View File

@ -26,8 +26,6 @@ ifneq (,$(findstring yes,$(CAPSTONE_DIET)))
CFLAGS += -DCAPSTONE_DIET
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