From 359138c8b67ff658994b01b0fab10ce3417639cd Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 23 Aug 2011 23:12:48 +0200 Subject: [PATCH] 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/ --- linux/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/Makefile b/linux/Makefile index e87d8e3..91847b2 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -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 $@