Re: clang and static linking?

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 09 Nov 2012 20:38:43 +0100
On 2012-11-09 19:28, Steve Kargl wrote:
> On Fri, Nov 09, 2012 at 07:02:48PM +0100, Dimitry Andric wrote:
...
>> Can you please post a reduced testcase?  I cannot reproduce this error
>> on -current, however much I tried.  My testcases attempted calling
>> isnan() and isnanf(), then I tried statically linking with libc and
>> libm, but it worked just fine...
>
> I'll see what I can do. sasmp is a fairly large OpenMPI program.

Sorry, never mind that.  I found a simple testcase:

#include <math.h>

int main(int argc, char *argv[])
{
	return isnan((double)argc) + isnan((float)argc);
}

Building with -lm -static will trigger the link error.  I'm
investigating where the problem is.
Received on Fri Nov 09 2012 - 18:38:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:32 UTC