app-text/discount: respect gentoo's CC propagation
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 22 Oct 2017 18:09:57 +0000 (19:09 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 22 Oct 2017 18:11:40 +0000 (19:11 +0100)
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@gentoo.org>
app-text/discount/discount-2.2.2.ebuild

index a16f7b4e4025b5b0a3d9f4aca8462eeb9d9465da..bb4f809a591cd760bb946d26f9638b511217a671 100644 (file)
@@ -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
 }