linux/Makefile: Add $(LDFLAGS) to the linker calls

Some cross compiling frame works like OpenEmbedded [1] pass this variable along.

[1] http://www.openembedded.org/
This commit is contained in:
Paul Menzel 2011-08-23 23:12:48 +02:00 committed by Alan Ott
parent ab3ba2e2a6
commit 359138c8b6

View File

@ -18,7 +18,7 @@ LIBS=`pkg-config libusb-1.0 libudev --libs`
hidtest: $(OBJS)
$(CXX) -Wall -g $^ $(LIBS) -o hidtest
$(CXX) -Wall -g $(LDFLAGS) $^ $(LIBS) -o hidtest
$(COBJS): %.o: %.c
$(CC) $(CFLAGS) $< -o $@