[petsc-dev] libm autodetection broken with -ffast-math

Jed Brown jed at jedbrown.org
Thu Apr 3 10:24:20 CDT 2014


Matthew Knepley <knepley at gmail.com> writes:

> On Wed, Apr 2, 2014 at 11:32 PM, Jed Brown <jed at jedbrown.org> wrote:
>
>> Barry Smith <bsmith at mcs.anl.gov> writes:
>>
>> >    Why not just always assume -lm is needed and only remove -lm if it
>> doesn't exist?
>>
>> That would be fine with me.
>
>
> How does this solve the problem? You might get an error from the linker if
> -lm is not found (maybe not),
> but you still cannot test that the symbols we expect to be there are
> actually there.

True, but that is C89 so it's where they are suppose to be.  It's
amazing how much easier our configure would be if vendors consistently
implemented the 25-year-old standards.  I think libm is relatively
conforming as these things go.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140403/37b97754/attachment.sig>


More information about the petsc-dev mailing list