Created attachment 546226 [details, diff] FreeBSD_bug32279.patch (modified for Linux) Related FreeBSD bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214258 This fixes compiling and checking with tc-has-openmp by linking libm into libomp.so, thus avoiding to put -lm on each usage of OpenMP in LLVM/Clang.
was this patch ever upstreamed?
Apparently yes... but conditionally to DragonFly|FreeBSD.
I'm going to reverse mark-as-duplicate because the other is much newer with an upstream link, but I'll link to OP comment. *** This bug has been marked as a duplicate of bug 816831 ***