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