Fix (another) linker library order
authorFrancis Giraldeau <francis.giraldeau@gmail.com>
Sun, 12 May 2013 02:59:21 +0000 (22:59 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 12 May 2013 02:59:21 +0000 (22:59 -0400)
Libraries must be specified after the binary target.

Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/hello-static-lib/Makefile

index a5bf2df1a6b32fdb5ff5e62f7ce52a5a002b79a5..dd246f70a5c274dd465f18cf025e57b5bc678e17 100644 (file)
@@ -46,7 +46,7 @@ hello.o: hello.c
        $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
 
 hello: hello.o lttng-ust-provider-hello.a
-       $(CC) -o $@ $(LDFLAGS) $(LIBS) $^
+       $(CC) -o $@ $(LDFLAGS) $^ $(LIBS)
 
 .PHONY: clean
 clean:
This page took 0.026361 seconds and 4 git commands to generate.