This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: another baby step - namespace adjustments


Fergus Henderson <fjh@cs.mu.OZ.AU> writes:

> On 19-Jul-2003, DJ Delorie <dj@redhat.com> wrote:
>> 
>> > C90 guarantees that the system has a sqrt() function somewhere, but
>> > says nothing about the name of the library containing it.
>> 
>> Perhaps an autoconf test to see if "-lm" works?  That should be
>> reliable enough, since it wouldn't depend on functions.  Just "hello.c
>> -lm" and see if it complains about not finding -lm.
>
> I think you'd need at least two tests, one for static linking and one
> for dynamic linking, because the static version of libm might not be
> installed.

Don't you think it would be simpler to put the damn function in
libiberty and be done with it?

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]