aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2017-02-05 12:17:42 +0100
committerUlrich Müller <ulm@gentoo.org>2017-02-05 12:17:42 +0100
commit4886ef639002ebb325a944837862f7ddc6f1d78e (patch)
treef8183311a3262ec50db9b98c1959673971d897cc
parentebuild-writing/common-mistakes: update the ebuild header copyright (diff)
downloaddevmanual-4886ef639002ebb325a944837862f7ddc6f1d78e.tar.gz
devmanual-4886ef639002ebb325a944837862f7ddc6f1d78e.tar.bz2
devmanual-4886ef639002ebb325a944837862f7ddc6f1d78e.zip
ebuild-writing/functions/src_compile/no-build-system: Add CPPFLAGS and drop ASFLAGS from examples.
-rw-r--r--ebuild-writing/functions/src_compile/no-build-system/text.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/ebuild-writing/functions/src_compile/no-build-system/text.xml b/ebuild-writing/functions/src_compile/no-build-system/text.xml
index 99b873a..d1ecef6 100644
--- a/ebuild-writing/functions/src_compile/no-build-system/text.xml
+++ b/ebuild-writing/functions/src_compile/no-build-system/text.xml
@@ -14,7 +14,7 @@ Here's an example, from <c>app-misc/hilite</c>:
<codesample lang="ebuild">
src_compile() {
- $(tc-getCC) ${LDFLAGS} ${CFLAGS} -o ${PN} ${P}.c || die
+ $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o ${PN} ${P}.c || die
}
</codesample>
@@ -29,7 +29,7 @@ src_compile() {
for x in asclock parser symbols config
do
$(tc-getCC) \
- ${CPPFLAGS} ${CFLAGS} ${ASFLAGS} \
+ ${CFLAGS} ${CPPFLAGS} \
-I/usr/include \
-Dlinux \
-D_POSIX_C_SOURCE=199309L \