commit:     49cc14c0f4f76a995d4764369523887320ebfa8c
Author:     Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 15 12:27:27 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Mar 15 20:03:15 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49cc14c0

net-libs/toxext: append-flags -fPIC to fix build with CLANG and LLD

Closes: https://bugs.gentoo.org/831338
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Jimi Huotari <chiitoo <AT> gentoo.org>
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 net-libs/toxext/toxext-0.0.3.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/net-libs/toxext/toxext-0.0.3.ebuild 
b/net-libs/toxext/toxext-0.0.3.ebuild
index 83c395524343..4e41feba68bf 100644
--- a/net-libs/toxext/toxext-0.0.3.ebuild
+++ b/net-libs/toxext/toxext-0.0.3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake
+inherit cmake flag-o-matic
 
 DESCRIPTION="Extension Library for Tox"
 HOMEPAGE="https://github.com/toxext/toxext";
@@ -22,4 +22,8 @@ src_prepare() {
 
        sed -i 's/-Werror//' CMakeLists.txt || die
        sed -i '/-fsanitize=/d' test/CMakeLists.txt || die
+
+       # Fix build with CLANG and LLD.
+       # https://bugs.gentoo.org/831338
+       append-flags -fPIC
 }

Reply via email to