X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=doc%2Fexamples%2Fhello-static-lib%2FMakefile;h=ec185c1ca38ba59bc0dad57d85803e41e991144b;hb=95526f2de3a6097493bc0a0a557c967ffe9938fe;hp=9a079ec1bfbdb6dbe250308baf746c6db30a10d5;hpb=afd20a5651f5e7c7e7f91bd08ea3be266a44f5ac;p=lttng-ust.git diff --git a/doc/examples/hello-static-lib/Makefile b/doc/examples/hello-static-lib/Makefile index 9a079ec1..ec185c1c 100644 --- a/doc/examples/hello-static-lib/Makefile +++ b/doc/examples/hello-static-lib/Makefile @@ -14,7 +14,10 @@ # # This makefile is purposefully kept simple to support GNU and BSD make. -CC = gcc +ifdef AM_CC + CC = $(AM_CC) +endif + LOCAL_CPPFLAGS += -I. LIBS = -ldl -llttng-ust # On Linux #LIBS = -lc -llttng-ust # On BSD