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.