From: Philippe Proulx Date: Sat, 18 Oct 2014 03:15:50 +0000 (-0400) Subject: lttng-gen-tp: document CFLAGS env. variable X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=da2f357477f0ecde16e04dda659f7009904d1cb6;p=lttng-docs.git lttng-gen-tp: document CFLAGS env. variable Signed-off-by: Philippe Proulx --- diff --git a/contents/using-lttng/instrumenting/c-application/lttng-gen-tp.md b/contents/using-lttng/instrumenting/c-application/lttng-gen-tp.md index 78f4dfa..9c07a6e 100644 --- a/contents/using-lttng/instrumenting/c-application/lttng-gen-tp.md +++ b/contents/using-lttng/instrumenting/c-application/lttng-gen-tp.md @@ -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: + +
+CFLAGS=-I/custom/include/path lttng-gen-tp my-template.tp
+
+ For more information on `lttng-gen-tp`, see its manpage.