X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=doc%2Fexamples%2Fdemo%2FMakefile;h=d55a1b19ce6afbb48cea0273325e445a1f36e629;hb=6e266bf56abf8746b3b42ee8d387f1cfb186a999;hp=27ca92b6704b32795e0259bb756ab8d8978b5063;hpb=415dfaf718b209207bf492a5f9afa571f76d789c;p=lttng-ust.git diff --git a/doc/examples/demo/Makefile b/doc/examples/demo/Makefile index 27ca92b6..d55a1b19 100644 --- a/doc/examples/demo/Makefile +++ b/doc/examples/demo/Makefile @@ -43,13 +43,13 @@ tp2.o: tp2.c ust_tests_demo2.h $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) -fpic -c -o $@ $< lttng-ust-provider-ust-tests-demo.so: tp.o tp2.o - $(CC) -shared -o $@ $(LDFLAGS) -llttng-ust $^ + $(CC) -shared -Wl,--no-as-needed -o $@ $(LDFLAGS) -llttng-ust $^ tp3.o: tp3.c ust_tests_demo3.h $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) -fpic -c -o $@ $< lttng-ust-provider-ust-tests-demo3.so: tp3.o - $(CC) -shared -o $@ $(LDFLAGS) -llttng-ust $^ + $(CC) -shared -Wl,--no-as-needed -o $@ $(LDFLAGS) -llttng-ust $^ demo.o: demo.c $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) -c -o $@ $<