Re: [PATCH spice 02/18] build-sys: build a utility libserver.la

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 16, 2015 at 12:49:16AM +0100, Marc-André Lureau wrote:
> This allow tests programs to link with statically built library to access all symbols

configure.ac now has LT_INIT([disable-static]), will static libraries
need to be manually enabled for this to work as expected?

Christophe

> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxx>
> ---
>  server/Makefile.am | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/server/Makefile.am b/server/Makefile.am
> index 32ab8eb..b20beec 100644
> --- a/server/Makefile.am
> +++ b/server/Makefile.am
> @@ -17,6 +17,7 @@ AM_CPPFLAGS =					\
>  	$(WARN_CFLAGS)				\
>  	$(NULL)
>  
> +noinst_LTLIBRARIES = libserver.la
>  lib_LTLIBRARIES = libspice-server.la
>  
>  libspice_server_la_LDFLAGS =			\
> @@ -31,7 +32,7 @@ libspice_server_la_LDFLAGS += \
>  	-Wl,--version-script=$(top_srcdir)/server/spice-server.syms
>  endif
>  
> -libspice_server_la_LIBADD =						\
> +libserver_la_LIBADD =							\
>  	$(top_builddir)/spice-common/common/libspice-common.la		\
>  	$(top_builddir)/spice-common/common/libspice-common-server.la	\
>  	$(GL_LIBS)							\
> @@ -61,7 +62,7 @@ libspice_serverinclude_HEADERS =		\
>  	spice.h					\
>  	$(NULL)
>  
> -libspice_server_la_SOURCES =			\
> +libserver_la_SOURCES =				\
>  	$(libspice_serverinclude_HEADERS)	\
>  	agent-msg-filter.c			\
>  	agent-msg-filter.h			\
> @@ -144,12 +145,15 @@ libspice_server_la_SOURCES =			\
>  	$(NULL)
>  
>  if HAVE_SMARTCARD
> -libspice_server_la_SOURCES +=	\
> +libserver_la_SOURCES +=	\
>  	smartcard.c		\
>  	smartcard.h		\
>  	$(NULL)
>  endif
>  
> +libspice_server_la_LIBADD = libserver.la
> +libspice_server_la_SOURCES =
> +
>  EXTRA_DIST =					\
>  	spice-bitmap-utils.tmpl.c			\
>  	cache-item.tmpl.c			\
> -- 
> 2.5.0
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/spice-devel

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]