Re: [PATCH] make spice-server-replay utility smaller

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

 



> 
> Acked-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>
> 
> though it took me a bit to understand what this was about, the commit
> log could probably be a bit clearer.
> 
> Christophe
> 

I was going to open the commit with a "spice-server-replay is fat!" but
I changed my mind!

I could try...
----
make spice-server-replay use dynamic spice-server library

spice-server-replay is built with the same settings as tests.
Currently the tests links to a convenience spice-server library.
A convenience library is a static library build with object file
for a dynamic library.
This make all tests contain all spice-server library code and not
linking to the spice-server dynamic library (the .so).
It's not a problem for most tests however this make impossible for
spice-server-replay utility to be used with a dynamic spice-server
library (you have to recompile it including the library).
This is a pity as you could for instance compare your system
library behavior with the library you are developing.
Also if we decide to install in a future the utility for testing
we wound have lot of code duplication.
----

Frediano

> On Mon, May 16, 2016 at 05:13:49PM +0100, Frediano Ziglio wrote:
> > spice-server-replay is built inside tests.
> > However tests are built linking to a convenience library causing all
> > spice-server code to be linked inside of the executable.
> > This is not a big problem however do not allow to easily use this
> > utility to test different binary version libraries.
> > Linking to just files and to the dynamic library allows to use
> > with different binary versions.
> > 
> > Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> > ---
> >  server/tests/Makefile.am | 13 ++++++++++++-
> >  1 file changed, 12 insertions(+), 1 deletion(-)
> > 
> > diff --git a/server/tests/Makefile.am b/server/tests/Makefile.am
> > index b3e9740..91edd7c 100644
> > --- a/server/tests/Makefile.am
> > +++ b/server/tests/Makefile.am
> > @@ -67,7 +67,18 @@ noinst_LIBRARIES += \
> >  	libstat_test4.a \
> >  	$(NULL)
> >  
> > -spice_server_replay_SOURCES = replay.c
> > +spice_server_replay_SOURCES = replay.c		\
> > +	../event-loop.c				\
> > +	basic_event_loop.c			\
> > +	basic_event_loop.h
> > +
> > +spice_server_replay_LDADD =					\
> > +	$(top_builddir)/spice-common/common/libspice-common.la	\
> > +	$(top_builddir)/server/libspice-server.la		\
> > +	$(GLIB2_LIBS)						\
> > +	$(GOBJECT2_LIBS)					\
> > +	$(SPICE_NONPKGCONFIG_LIBS)		                \
> > +	$(NULL)
> >  
> >  stat_test_SOURCES = stat-main.c
> >  stat_test_LDADD = \

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://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]