Makefile: -share option is not for Darwin
This commit is contained in:
parent
e7314e99b2
commit
927b2add31
6
Makefile
6
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue