From: Julien Desfossez Date: Thu, 4 Jul 2013 16:01:04 +0000 (-0400) Subject: Fix: libs order in Makefile X-Git-Tag: v2.2.1~1 X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=commitdiff_plain;h=6689c64e3525aab09739ced91f903397b29f28ea Fix: libs order in Makefile 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 Signed-off-by: Mathieu Desnoyers --- diff --git a/doc/examples/easy-ust/Makefile b/doc/examples/easy-ust/Makefile index 15ce7ed8..966c4744 100644 --- a/doc/examples/easy-ust/Makefile +++ b/doc/examples/easy-ust/Makefile @@ -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) \ diff --git a/doc/examples/gen-tp/Makefile b/doc/examples/gen-tp/Makefile index f1af23de..e5e3cd37 100644 --- a/doc/examples/gen-tp/Makefile +++ b/doc/examples/gen-tp/Makefile @@ -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) \ diff --git a/doc/examples/hello-static-lib/Makefile b/doc/examples/hello-static-lib/Makefile index f1913328..9a079ec1 100644 --- a/doc/examples/hello-static-lib/Makefile +++ b/doc/examples/hello-static-lib/Makefile @@ -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: