commit:     dfdaa4e2f10f4b223516b4f4f8608a8f9e479986
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 15 08:24:51 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Jun 15 08:24:51 2021 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=dfdaa4e2

ebuild-writing/functions/src_compile/building: Pass CPPFLAGS to emake

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 ebuild-writing/functions/src_compile/building/text.xml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ebuild-writing/functions/src_compile/building/text.xml 
b/ebuild-writing/functions/src_compile/building/text.xml
index c9ca6ed..0f332b9 100644
--- a/ebuild-writing/functions/src_compile/building/text.xml
+++ b/ebuild-writing/functions/src_compile/building/text.xml
@@ -68,7 +68,10 @@ src_compile() {
        # -Os not happy
        replace-flags -Os -O2
 
-       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+       emake CC="$(tc-getCC)" \
+               CPPFLAGS="${CPPFLAGS}" \
+               CFLAGS="${CFLAGS}" \
+               LDFLAGS="${LDFLAGS}"
 }
 </codesample>
 

Reply via email to