commit:     6d6e12f917c0473908393d45b1baee1d36931fed
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 30 11:15:40 2018 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Mar 30 11:43:07 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d6e12f9

toolchain-glibc.eclass: log when eclass overrides CC/CFLAGS

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 eclass/toolchain-glibc.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/toolchain-glibc.eclass b/eclass/toolchain-glibc.eclass
index f58b44bcfff..bd10f2cbbe4 100644
--- a/eclass/toolchain-glibc.eclass
+++ b/eclass/toolchain-glibc.eclass
@@ -363,6 +363,7 @@ setup_env() {
                # and fall back on CFLAGS.
                local VAR=CFLAGS_${CTARGET//[-.]/_}
                CFLAGS=${!VAR-${CFLAGS}}
+               einfo " $(printf '%15s' 'Manual CFLAGS:')   ${CFLAGS}"
        fi
 
        setup_flags
@@ -376,6 +377,7 @@ setup_env() {
        # top of each other.
        : ${__GLIBC_CC:=$(tc-getCC ${CTARGET_OPT:-${CTARGET}})}
        export __GLIBC_CC CC="${__GLIBC_CC} ${!VAR}"
+       einfo " $(printf '%15s' 'Manual CC:')   ${CC}"
 }
 
 foreach_abi() {

Reply via email to