From: Mathieu Desnoyers Date: Mon, 26 Aug 2013 15:16:06 +0000 (-0400) Subject: Fix: doc/examples cross-build X-Git-Tag: v0.8.0~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=223c9ed052d32fd078df0fcd48ce7732cdbe0165;p=urcu.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 5ad70f4..7687098 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -128,7 +128,7 @@ all-local: cp -fR $(srcdir)/$$subdir $(builddir); \ done; \ fi - $(MAKE) -f dist-files/Makefile AM_CPPFLAGS="-I../../../urcu/ -I../../../" AM_LDFLAGS='-L../../../.libs/ -Wl,-rpath="$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all + $(MAKE) -f dist-files/Makefile AM_CPPFLAGS="$(CPPFLAGS) -I../../../urcu/ -I../../../" AM_CFLAGS='$(CFLAGS)' AM_LDFLAGS='$(LDFLAGS) -L../../../.libs/ -Wl,-rpath="$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all clean-local: $(MAKE) -f dist-files/Makefile $(AM_MAKEFLAGS) clean