mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user