From 9ec23f2e52b3b0bd8b80afbe2e8e8ae1ab222c6b Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 26 Aug 2013 11:14:56 -0400 Subject: [PATCH] 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 --- doc/examples/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.34.1