[Spice-devel] [spice-common 1/2] build: Ensure we link with -lm if needed

Frediano Ziglio fziglio at redhat.com
Mon Jun 4 11:16:00 UTC 2018


> 
> On Mon, Jun 04, 2018 at 05:04:05AM -0400, Frediano Ziglio wrote:
> > > 
> > > lines.c uses hypot(), which is found in libm on some systems.
> > > 
> > 
> > Do you remember which systems? FreeBSD ?
> 
> Linux ;) Just add a call to hypot in spice_logv (or something which is
> used by one of our tests), ./autogen.sh --disable-celt051, and build
> will fail because of the missing -lm.
> 
> Christophe
> 

So celt add aded -lm which is removed disabling it however libm is still
required by some code.
Make sense, still ack.

Frediano


More information about the Spice-devel mailing list