Fix: libs order in Makefile
authorJulien Desfossez <jdesfossez@efficios.com>
Thu, 4 Jul 2013 16:01:04 +0000 (12:01 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 4 Jul 2013 16:01:04 +0000 (12:01 -0400)
Since commit 16c96fc0224145192f803fecbdb20ec05fdaf5e2, the examples
don't build well on Ubuntu. The gcc -l argument needs to be the last
one.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/easy-ust/Makefile
doc/examples/gen-tp/Makefile
doc/examples/hello-static-lib/Makefile

index 15ce7ed81450993e076d633ae6f2f51362ef23c7..966c4744bb3c359e100bce061a0e273cb313f986 100644 (file)
@@ -25,7 +25,7 @@ all: sample
 
 sample: sample.o tp.o
        $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(AM_CFLAGS) \
-               $(LIBS) sample.o tp.o
+               sample.o tp.o $(LIBS)
 
 sample.o: sample.c sample_component_provider.h
        $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) \
index f1af23deda3325ac60889b026548c31bd51f4c02..e5e3cd378a08459987256e9535ca56445fb331a9 100644 (file)
@@ -26,7 +26,7 @@ all: sample
 
 sample: sample.o sample_tracepoint.o
        $(CC) $(LDFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(AM_CFLAGS) \
-               -o $@ $(LIBS) sample.o sample_tracepoint.o
+               -o $@ sample.o sample_tracepoint.o $(LIBS)
 
 sample.o: sample.c sample_tracepoint.h
        $(CC) $(CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(AM_CFLAGS) \
index f19133286dfe565d20b82b2b2ab3a2685f1eb77d..9a079ec1bfbdb6dbe250308baf746c6db30a10d5 100644 (file)
@@ -34,7 +34,7 @@ hello.o: hello.c
 
 hello: hello.o lttng-ust-provider-hello.a
        $(CC) -o $@ $(LDFLAGS) $(CPPFLAGS) $(AM_LDFLAGS) $(AM_CFLAGS) \
-               $(LIBS) hello.o lttng-ust-provider-hello.a
+               hello.o lttng-ust-provider-hello.a $(LIBS)
 
 .PHONY: clean
 clean:
This page took 0.026319 seconds and 4 git commands to generate.