From: Jérémie Galarneau Date: Tue, 8 Apr 2014 18:43:32 +0000 (-0400) Subject: Fix: Use $AM_CC when it is defined instead of gcc in demo-tracef X-Git-Tag: v2.5.0-rc1~16 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e7469d86f20b313fd8abc5ae2cfd0baba5038456;p=lttng-ust.git Fix: Use $AM_CC when it is defined instead of gcc in demo-tracef Signed-off-by: Jérémie Galarneau Signed-off-by: Mathieu Desnoyers --- 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.