Re: clang and static linking?

看板FB_current作者時間12年前 (2013/04/27 12:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串12/16 (看更多)
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"
文章代碼(AID): #1HUrJyrI (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1HUrJyrI (FB_current)