From 223c9ed052d32fd078df0fcd48ce7732cdbe0165 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 26 Aug 2013 11:16:06 -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 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 -- 2.34.1