clang and static linking?
Dimitry Andric
dim at FreeBSD.org
Fri Nov 9 19:38:42 UTC 2012
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.
More information about the freebsd-current
mailing list