tests: use LDFLAGS to link test files - this is to make Gentoo happy

This commit is contained in:
Nguyen Anh Quynh 2014-01-03 12:13:48 +08:00
parent 91679cdb60
commit 7adb0bb969

View File

@ -8,9 +8,6 @@ CC = $(CROSS)gcc
CFLAGS += -fPIC -O3 -Wall -I$(INCDIR) -L$(LIBDIR)
# dummy setup to make Gentoo happy
$(LDFLAGS)
LIBNAME = capstone
BIN_EXT =
@ -43,7 +40,7 @@ clean:
$(BINARY): $(OBJS)
%$(BIN_EXT): %.o
${CC} $(CFLAGS) $< -O3 -Wall -l$(LIBNAME) -o $@
${CC} $(CFLAGS) $(LDFLAGS) $< -O3 -Wall -l$(LIBNAME) -o $@
%.o: %.c
${CC} ${CFLAGS} -c $< -o $@