[Spice-devel] [spice-gtk] build-sys:tests: Error out unless --enable-static is used

Victor Toso lists at victortoso.com
Wed Oct 14 03:18:18 PDT 2015


Hi,

On Tue, Oct 13, 2015 at 11:54:15AM +0200, Christophe Fergeau wrote:
> On Tue, Oct 13, 2015 at 11:39:17AM +0200, Victor Toso wrote:
> > ack as well.
> >
> > I really don't understand why we do tests on when --enable-static only.
> > Personally I prefer --enable-debug and do the linking...
> >
> > http://lists.freedesktop.org/archives/spice-devel/2015-February/019049.html
>
> Ah hmm some version of this could work too indeed. I'd rather that we
> don't hardcode ./libs/xxx.o though. Maybe the .lo files can be used?
> Alternatively, adding the needed C files from src/ to coroutine_SOURCES
> may work?
>
> coroutine_SOURCES=$(top_srcdir)/src/coroutine_ucontext.c $(top_srcdir)/src/continuation.c
>
> Writing this makes me realize that coroutine are not necessarily
> implemented using ucontext, but can use gthread or the win32 API, and
> all this logic is already present in src/Makefile.am, so linking with
> the resulting library means we benefit from this logic for free.
>
> Christophe

I wasn't able to link to the .lo files (how they are generated?) my
autotools-foo is weak.

Tested the second approach and it worked.
http://lists.freedesktop.org/archives/spice-devel/2015-October/022367.html

cheers,
  toso


More information about the Spice-devel mailing list