commit:     d592068f9dbdfd5963859ca7a6d26002f1b6f9e0
Author:     Anna Vyalkova <cyber <AT> sysrq <DOT> in>
AuthorDate: Sun May 16 12:12:57 2021 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Sun May 16 14:05:01 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d592068f

app-crypt/reop: properly set CC variable

Closes: https://bugs.gentoo.org/784791
Signed-off-by: Anna Vyalkova <cyber <AT> sysrq.in>

 app-crypt/reop/reop-2.1.1.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app-crypt/reop/reop-2.1.1.ebuild b/app-crypt/reop/reop-2.1.1.ebuild
index b0b69c931..a4bb9583b 100644
--- a/app-crypt/reop/reop-2.1.1.ebuild
+++ b/app-crypt/reop/reop-2.1.1.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=7
 
+inherit toolchain-funcs
+
 DESCRIPTION="reasonable expectation of privacy"
 HOMEPAGE="https://flak.tedunangst.com/post/reop";
 SRC_URI="https://flak.tedunangst.com/files/${P}.tgz";
@@ -15,7 +17,7 @@ DEPEND="dev-libs/libsodium:="
 RDEPEND="${DEPEND}"
 
 src_compile() {
-       emake CC="${CC:-cc}" CFLAGS="${CFLAGS}" LDFLAGS="-lsodium ${LDFLAGS}"
+       emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="-lsodium ${LDFLAGS}"
 }
 
 src_test() {

Reply via email to