[lttng-dev] [PATCH lttng-ust] Fix: Use $AM_CC when it is defined instead of gcc in demo-tracef

Jérémie Galarneau jeremie.galarneau at efficios.com
Tue Apr 8 14:29:48 EDT 2014


Signed-off-by: Jérémie Galarneau <jeremie.galarneau at efficios.com>
---
 doc/examples/demo-tracef/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/doc/examples/demo-tracef/Makefile
b/doc/examples/demo-tracef/Makefile
index 644acdc..40e9a58 100644
--- a/doc/examples/demo-tracef/Makefile
+++ b/doc/examples/demo-tracef/Makefile
@@ -15,7 +15,10 @@
 #
 # This makefile is purposefully kept simple to support GNU and BSD make.

-CC = gcc
+ifdef AM_CC
+       CC = $(AM_CC)
+endif
+
 LIBS = -ldl -llttng-ust        # On Linux
 #LIBS = -lc    # On BSD
 LOCAL_CPPFLAGS += -I.
--
1.9.1



More information about the lttng-dev mailing list