From 6689c64e3525aab09739ced91f903397b29f28ea Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Thu, 4 Jul 2013 12:01:04 -0400 Subject: [PATCH] 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 --- doc/examples/easy-ust/Makefile | 2 +- doc/examples/gen-tp/Makefile | 2 +- doc/examples/hello-static-lib/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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: -- 2.34.1