Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 665474

Summary: sys-libs/libomp lacks -lm
Product: Gentoo Linux Reporter: Haelwenn (lanodan) Monnier <contact>
Component: Current packagesAssignee: Bernard Cafarelli <voyageur>
Status: UNCONFIRMED ---    
Severity: normal CC: egger.m, herrtimson, jstein, llvm, mgorny
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: FreeBSD_bug32279.patch (modified for Linux)

Description Haelwenn (lanodan) Monnier 2018-09-08 01:47:10 UTC
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.
Comment 1 tt_1 2020-01-25 21:25:10 UTC
was this patch ever upstreamed?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-01-26 04:39:10 UTC
Apparently yes... but conditionally to DragonFly|FreeBSD.