1 |
commit: 4886ef639002ebb325a944837862f7ddc6f1d78e |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 5 11:17:42 2017 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 5 11:17:42 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=4886ef63 |
7 |
|
8 |
ebuild-writing/functions/src_compile/no-build-system: Add CPPFLAGS and drop ASFLAGS from examples. |
9 |
|
10 |
ebuild-writing/functions/src_compile/no-build-system/text.xml | 4 ++-- |
11 |
1 file changed, 2 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/ebuild-writing/functions/src_compile/no-build-system/text.xml b/ebuild-writing/functions/src_compile/no-build-system/text.xml |
14 |
index 99b873a..d1ecef6 100644 |
15 |
--- a/ebuild-writing/functions/src_compile/no-build-system/text.xml |
16 |
+++ b/ebuild-writing/functions/src_compile/no-build-system/text.xml |
17 |
@@ -14,7 +14,7 @@ Here's an example, from <c>app-misc/hilite</c>: |
18 |
|
19 |
<codesample lang="ebuild"> |
20 |
src_compile() { |
21 |
- $(tc-getCC) ${LDFLAGS} ${CFLAGS} -o ${PN} ${P}.c || die |
22 |
+ $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o ${PN} ${P}.c || die |
23 |
} |
24 |
</codesample> |
25 |
|
26 |
@@ -29,7 +29,7 @@ src_compile() { |
27 |
for x in asclock parser symbols config |
28 |
do |
29 |
$(tc-getCC) \ |
30 |
- ${CPPFLAGS} ${CFLAGS} ${ASFLAGS} \ |
31 |
+ ${CFLAGS} ${CPPFLAGS} \ |
32 |
-I/usr/include \ |
33 |
-Dlinux \ |
34 |
-D_POSIX_C_SOURCE=199309L \ |