From e7469d86f20b313fd8abc5ae2cfd0baba5038456 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 8 Apr 2014 14:43:32 -0400 Subject: [PATCH] Fix: Use $AM_CC when it is defined instead of gcc in demo-tracef MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau Signed-off-by: Mathieu Desnoyers --- 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 644acdce..40e9a581 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. -- 2.34.1