X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=doc%2Fexamples%2Fhello-static-lib%2FMakefile;fp=doc%2Fexamples%2Fhello-static-lib%2FMakefile;h=ec185c1ca38ba59bc0dad57d85803e41e991144b;hb=0728d3076b4c51ae1f58892a463d5e522ed8b044;hp=9a079ec1bfbdb6dbe250308baf746c6db30a10d5;hpb=acc6a83584f46fea81e4554df137cfda4434a1e4;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