commit:     5f444e02e0e87bc2c27a67d986a1da06a428eba2
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  3 19:30:11 2020 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Wed Jun  3 20:54:05 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f444e02

app-misc/sl: honor CC.

.. using the tc-getCC function. Whilst at it, honor CFLAGS.

Closes: https://bugs.gentoo.org/722316
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 app-misc/sl/sl-5.02.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/app-misc/sl/sl-5.02.ebuild b/app-misc/sl/sl-5.02.ebuild
index 5601461b679..74a22148b89 100644
--- a/app-misc/sl/sl-5.02.ebuild
+++ b/app-misc/sl/sl-5.02.ebuild
@@ -22,10 +22,14 @@ DOCS=( README.md )
 src_prepare() {
        default
        sed \
-           -e "s/-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" \
+               -e "s/-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" \
                -i Makefile || die
 }
 
+src_compile() {
+       emake CC=$(tc-getCC) CFLAGS="${CFLAGS}"
+}
+
 src_install() {
        dobin "${PN}"
        doman "${PN}.1"

Reply via email to