[lttng-dev] [PATCH] Fix linker library order

Francis Giraldeau francis.giraldeau at gmail.com
Sat May 11 20:25:33 EDT 2013


Libraries must be specified after the binary target.

Signed-off-by: Francis Giraldeau <francis.giraldeau at gmail.com>
---
 doc/examples/demo/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/examples/demo/Makefile b/doc/examples/demo/Makefile
index 7ae6547..bbc8ccb 100644
--- a/doc/examples/demo/Makefile
+++ b/doc/examples/demo/Makefile
@@ -55,7 +55,7 @@ demo.o: demo.c
 	$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
 
 demo: demo.o
-	$(CC) -o $@ $(LIBS) $^
+	$(CC) -o $@ $^ $(LIBS)
 
 .PHONY: clean
 clean:
-- 
1.8.1.2




More information about the lttng-dev mailing list