Subject: Re: correct use of '-lm' for mysql-client?
To: Andrew Gillham <gillhaa@ghost.whirlpool.com>
From: Ignatios Souvatzis <ignatios@cosinus.cs.uni-bonn.de>
List: tech-pkg
Date: 04/29/2000 15:19:48
On Fri, Apr 28, 2000 at 10:27:35PM -0400, Andrew Gillham wrote:
> Hello,
> 
> The mysql-client library 'libmysqlclient.so' makes use of the
> floor(3) call from libm, but it doesn't appear to be linked
> against it.  Is this supposed to resolve at runtime via ld.elf_so?

The programs using libmysqlclient need to link -lm, too, in this case.

> Anyway, for php3-mysql I can just add a '-lm' under the do-build target,
> but is this correct?

yes.

> Is the mysql-client broken since it doesn't appear
> to be linked against libm?

No.

	-is
-- 
 * Progress (n.): The process through which Usenet has evolved from
   smart people in front of dumb terminals to dumb people in front of
   smart terminals.  -- obs@burnout.demon.co.uk (obscurity)