commit: 7f2ae3ccb2158e06fed1eeee5fbae4d0779120d8
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 10 01:32:20 2021 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Jun 15 08:20:07 2021 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=7f2ae3cc
ebuild-writing/functions/src_compile/building: add ${CPPFLAGS} to cc invocation
Signed-off-by: Sam James <sam <AT> gentoo.org>
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
ebuild-writing/functions/src_compile/building/text.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ebuild-writing/functions/src_compile/building/text.xml
b/ebuild-writing/functions/src_compile/building/text.xml
index fcde02e..c9ca6ed 100644
--- a/ebuild-writing/functions/src_compile/building/text.xml
+++ b/ebuild-writing/functions/src_compile/building/text.xml
@@ -60,7 +60,7 @@ src_prepare() {
# We have a weird Makefile to work with which ignores our
# compiler preferences. yay!
# Note the single quotes (hence the delimiter is not an issue)
- sed -i -e 's:cc -O2:$(CC) $(CFLAGS) $(LDFLAGS):' Makefile \
+ sed -i -e 's:cc -O2:$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS):' Makefile \
|| die "sed fix failed. Uh-oh..."
}