another baby step - namespace adjustments
Zack Weinberg
zack@codesourcery.com
Mon Jul 21 03:34:00 GMT 2003
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
More information about the Gcc-patches
mailing list