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>
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"
--debian-glitch
)
einfo "Running ${configure_call[@]}"
+ CC="$(tc-getCC)" \
"${configure_call[@]}" || die
}