From: Mathieu Desnoyers Date: Mon, 26 Aug 2013 15:14:56 +0000 (-0400) Subject: Fix: doc/examples cross-build X-Git-Tag: v2.2.2~13 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4228451d2a7cd8bd0e09d02e654a6a5b97c902c9;p=lttng-ust.git Fix: doc/examples cross-build We need to pass automake's CPPFLAGS and LDFLAGS to examples. Add CFLAGS too for completeness. Signed-off-by: Mathieu Desnoyers --- diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 8c4901bf..3769283a 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -45,7 +45,7 @@ all-local: done; \ fi for subdir in $(SUBDIRS_PROXY); do \ - cd $$subdir && $(MAKE) AM_CPPFLAGS="-I../../../include/" AM_LDFLAGS='-L../../../liblttng-ust/.libs/ -Wl,-rpath="$(PWD)/../../liblttng-ust/.libs/"' LTTNG_GEN_TP_PATH="../../../tools/" $(AM_MAKEFLAGS) all; cd ..; \ + cd $$subdir && $(MAKE) AM_CPPFLAGS="$(CPPFLAGS) -I../../../include/" AM_CFLAGS='$(CFLAGS)' AM_LDFLAGS='$(LDFLAGS) -L../../../liblttng-ust/.libs/ -Wl,-rpath="$(PWD)/../../liblttng-ust/.libs/"' LTTNG_GEN_TP_PATH="../../../tools/" $(AM_MAKEFLAGS) all; cd ..; \ done clean-local: