Re: clang and static linking?
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.
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 12 之 16 篇):