lttng-gen-tp: document CFLAGS env. variable
[lttng-docs.git] / contents / using-lttng / instrumenting / c-application / lttng-gen-tp.md
index 78f4dfa555fc9bc3b6457ac79ddf5e09e37fa19b..9c07a6e147f8c4b177b1d1ff806f3c9ffdba88c2 100644 (file)
@@ -23,5 +23,12 @@ lttng-gen-tp my-template.tp
 `my-template.c`, `my-template.o` and `my-template.h` will be created
 in the same directory.
 
+You may specify custom C flags passed to the compiler invoked by
+`lttng-gen-tp` using the `CFLAGS` environment variable:
+
+<pre class="term">
+CFLAGS=-I/custom/include/path lttng-gen-tp my-template.tp
+</pre>
+
 For more information on `lttng-gen-tp`, see
 <a href="/man/1/lttng-gen-tp" class="ext">its manpage</a>.
This page took 0.055925 seconds and 4 git commands to generate.