tests: do not use -L option for clang

This commit is contained in:
Nguyen Anh Quynh 2013-12-29 22:36:00 +08:00
parent ec4ead2c02
commit 4ca85111f6
1 changed files with 6 additions and 0 deletions

View File

@ -6,7 +6,13 @@ LIBDIR = ..
CC = $(CROSS)gcc
COMPILER = $(shell $(CC) -v 2>&1 )
ifeq ($(findstring clang,$(COMPILER)),clang)
# clang doesnt like -L option
CFLAGS += -fPIC -O3 -Wall -I$(INCDIR)
else
CFLAGS += -fPIC -O3 -Wall -I$(INCDIR) -L$(LIBDIR)
endif
LIBNAME = capstone