Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 665474 - sys-libs/libomp lacks -lm
Summary: sys-libs/libomp lacks -lm
Status: RESOLVED DUPLICATE of bug 816831
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-09-08 01:47 UTC by Haelwenn (lanodan) Monnier
Modified: 2021-10-29 12:27 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
FreeBSD_bug32279.patch (modified for Linux) (FreeBSD_bug32279.patch,795 bytes, patch)
2018-09-08 01:47 UTC, Haelwenn (lanodan) Monnier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-29 12:26:08 UTC
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 ***