diff options
author | Sam James <sam@gentoo.org> | 2021-04-10 01:32:20 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2021-06-15 10:20:07 +0200 |
commit | 7f2ae3ccb2158e06fed1eeee5fbae4d0779120d8 (patch) | |
tree | 788dc7fe2a8a9e5d7940140487b1dbb0f623fe83 /ebuild-writing | |
parent | function-reference/query-functions: document missing pms functions (diff) | |
download | devmanual-7f2ae3ccb2158e06fed1eeee5fbae4d0779120d8.tar.gz devmanual-7f2ae3ccb2158e06fed1eeee5fbae4d0779120d8.tar.bz2 devmanual-7f2ae3ccb2158e06fed1eeee5fbae4d0779120d8.zip |
ebuild-writing/functions/src_compile/building: add ${CPPFLAGS} to cc invocation
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'ebuild-writing')
-rw-r--r-- | ebuild-writing/functions/src_compile/building/text.xml | 2 |
1 files changed, 1 insertions, 1 deletions
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..." } |