From ffb2a17555ee868ad24527846cae381c5255c314 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Mon, 3 Oct 2016 10:42:45 -0400 Subject: [PATCH] Fix: build: pass configure flags to cmake example Signed-off-by: Jonathan Rajotte Signed-off-by: Mathieu Desnoyers --- doc/examples/Makefile.am | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index c7e5b68f..5d67e791 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -149,7 +149,13 @@ all-local: cd $(SUBDIRS_CMAKE) && \ $(MKDIR_P) build && \ cd build && \ - cmake -DCMAKE_INCLUDE_PATH="$(abs_top_srcdir)/include;$(abs_top_builddir)/include" -DCMAKE_LIBRARY_PATH="$(abs_top_builddir)/liblttng-ust/.libs" .. && \ + cmake \ + -DCMAKE_INCLUDE_PATH="$(abs_top_srcdir)/include;$(abs_top_builddir)/include" \ + -DCMAKE_LIBRARY_PATH="$(abs_top_builddir)/liblttng-ust/.libs" \ + -DCMAKE_C_FLAGS="$(CFLAGS) $(CPPFLAGS)" \ + -DCMAKE_CXX_FLAGS="$(CXXFLAGS) $(CPPFLAGS)" \ + -DCMAKE_EXE_LINKER_FLAGS="$(LDFLAGS)" \ + .. && \ $(MAKE) && \ cd .. \ ) || exit 1; \ -- 2.34.1