[Spice-devel] [PATCH 2/3] tests: fix linkage using *_LDADD

Marc-André Lureau mlureau at redhat.com
Fri Feb 27 07:40:48 PST 2015


Why do you need that? it should build with static libraries.

(you need --enable-static to build the tests)

----- Original Message -----
> ---
>  tests/Makefile.am | 14 ++++++++++++--
>  1 file changed, 12 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/Makefile.am b/tests/Makefile.am
> index b236b12..0985a76 100644
> --- a/tests/Makefile.am
> +++ b/tests/Makefile.am
> @@ -18,7 +18,17 @@ LDADD =							\
>  	$(top_builddir)/gtk/libspice-client-glib-2.0.la	\
>  	$(NULL)
>  
> -util_SOURCES = util.c
> -coroutine_SOURCES = coroutine.c
> +util_SOURCES = \
> +	util.c
> +
> +util_LDADD = \
> +	$(top_builddir)/gtk/.libs/spice-util.o
> +
> +coroutine_SOURCES = \
> +	coroutine.c
> +
> +coroutine_LDADD = \
> +	$(top_builddir)/gtk/.libs/coroutine_ucontext.o \
> +	$(top_builddir)/gtk/.libs/continuation.o
>  
>  -include $(top_srcdir)/git.mk
> --
> 2.1.0
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list