From: Sergei Trofimovich Date: Sun, 22 Oct 2017 18:09:57 +0000 (+0100) Subject: app-text/discount: respect gentoo's CC propagation X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=8689fa2a0ccf320229054f49e1fdf8646704dd7c;p=gentoo.git app-text/discount: respect gentoo's CC propagation Before the change build log looks like: cc -I. ... -g -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -fPIC -I. -c main.c After the change: x86_64-pc-linux-gnu-gcc -I. ... -g -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -fPIC -I. -c main.c See https://devmanual.gentoo.org/ebuild-writing/functions/src_compile/building/ for more details. Signed-off-by: Sergei Trofimovich --- diff --git a/app-text/discount/discount-2.2.2.ebuild b/app-text/discount/discount-2.2.2.ebuild index a16f7b4e4025..bb4f809a591c 100644 --- a/app-text/discount/discount-2.2.2.ebuild +++ b/app-text/discount/discount-2.2.2.ebuild @@ -3,6 +3,8 @@ EAPI=6 +inherit toolchain-funcs + DESCRIPTION="A Markdown-to HTML translator written in C" HOMEPAGE="http://www.pell.portland.or.us/~orc/Code/discount/" SRC_URI="http://www.pell.portland.or.us/~orc/Code/${PN}/${P}.tar.bz2" @@ -46,6 +48,7 @@ src_configure() { --debian-glitch ) einfo "Running ${configure_call[@]}" + CC="$(tc-getCC)" \ "${configure_call[@]}" || die }