commit:     a89e7f4a5d8af8c009cac6b47b29d6a1edfea0a2
Author:     Zamarin Arthur <arthurzam <AT> gmail <DOT> com>
AuthorDate: Mon May  3 14:47:14 2021 +0000
Commit:     Zamarin Arthur <arthurzam+gentoo <AT> gmail <DOT> com>
CommitDate: Mon May  3 14:47:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a89e7f4a

sys-process/iotop-c: fix compilation with llvm[-gold]

The makefile adds LTO by default, resulting in failed compilation
when using llvm without gold.
By Adding `NO_FLTO=1` we disable LTO and it compiles.

Closes: https://bugs.gentoo.org/785538
Signed-off-by: Zamarin Arthur <arthurzam <AT> gmail.com>

 sys-process/iotop-c/iotop-c-1.17-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-process/iotop-c/iotop-c-1.17-r1.ebuild 
b/sys-process/iotop-c/iotop-c-1.17-r1.ebuild
index d778526f6..bc7986f85 100644
--- a/sys-process/iotop-c/iotop-c-1.17-r1.ebuild
+++ b/sys-process/iotop-c/iotop-c-1.17-r1.ebuild
@@ -27,7 +27,7 @@ FILECAPS=(
 )
 
 src_compile() {
-       emake V=1 CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)"
+       emake V=1 CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)" NO_FLTO=1
 }
 
 src_install() {

Reply via email to