[lttng-dev] [PATCH] Fix (another) linker library order

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Sat May 11 23:00:25 EDT 2013


* Francis Giraldeau (francis.giraldeau at gmail.com) wrote:
> Libraries must be specified after the binary target.

merged, thanks,

Mathieu

> 
> Signed-off-by: Francis Giraldeau <francis.giraldeau at gmail.com>
> ---
>  doc/examples/hello-static-lib/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/doc/examples/hello-static-lib/Makefile b/doc/examples/hello-static-lib/Makefile
> index a5bf2df..dd246f7 100644
> --- a/doc/examples/hello-static-lib/Makefile
> +++ b/doc/examples/hello-static-lib/Makefile
> @@ -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:
> -- 
> 1.8.1.2
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list