commit:     8689fa2a0ccf320229054f49e1fdf8646704dd7c
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 22 18:09:57 2017 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Oct 22 18:11:40 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8689fa2a

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 <slyfox <AT> gentoo.org>

 app-text/discount/discount-2.2.2.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app-text/discount/discount-2.2.2.ebuild 
b/app-text/discount/discount-2.2.2.ebuild
index a16f7b4e402..bb4f809a591 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
 }
 

Reply via email to