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@gentoo.org>
This commit is contained in:
Patrice Clement
2020-06-03 22:54:05 +02:00
parent decdf1e4e5
commit 5f444e02e0
+5 -1
View File
@@ -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"