From 256175cffb00b15543bd49a4268e6c528bd51fce Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 26 Aug 2013 11:26:09 -0400 Subject: [PATCH] doc/examples/gen-tp: pass automake CPPFLAGS/CFLAGS/LDFLAGS Fix cross-build. Signed-off-by: Mathieu Desnoyers --- doc/examples/gen-tp/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/examples/gen-tp/Makefile b/doc/examples/gen-tp/Makefile index e5e3cd37..bc979d97 100644 --- a/doc/examples/gen-tp/Makefile +++ b/doc/examples/gen-tp/Makefile @@ -40,6 +40,9 @@ sample.o: sample.c sample_tracepoint.h # This rule generate .o only and depends on rules for generating # the .h and .c %.o: %.tp %.c %.h + CPPFLAGS="$(CPPFLAGS) $(AM_CPPFLAGS)" \ + CFLAGS="$(CFLAGS) $(AM_CFLAGS)" \ + LDFLAGS="$(LDFLAGS) $(AM_LDFLAGS)" \ $(LTTNG_GEN_TP_PATH)lttng-gen-tp -o $@ $< # The following rule can be used to generate all files instead of having one -- 2.34.1