X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fgetcpu-override%2FMakefile.am;h=0543835b4506a48d1c1364329a69598a0d67314e;hb=5da3fc8579a9f93ea4767729a107784bf2d034ae;hp=f1026ac02e96417b946d6af33d01cacda7974f07;hpb=568d7e2db7370f57e9612eb9b8c1a6b0bf5213cd;p=lttng-tools.git diff --git a/tests/regression/ust/getcpu-override/Makefile.am b/tests/regression/ust/getcpu-override/Makefile.am index f1026ac02..0543835b4 100644 --- a/tests/regression/ust/getcpu-override/Makefile.am +++ b/tests/regression/ust/getcpu-override/Makefile.am @@ -1,4 +1,14 @@ -AM_CPPFLAGS = -I$(srcdir) +if NO_SHARED +# Do not build this test if shared libraries support was +# explicitly disabled. + +CLEANFILES = lttng-ust-getcpu-override-test.so \ + lttng-ust-getcpu-override-test.so.debug + +EXTRA_DIST = test_getcpu_override run-getcpu-override \ + lttng-ust-getcpu-override-test.c + +else # The rpath is necessary because libtool won't build a shared library # if it's noinst_ @@ -11,13 +21,8 @@ GETCPU_LIBTOOL_FLAGS = \ noinst_LTLIBRARIES = lttng-ust-getcpu-override-test.la lttng_ust_getcpu_override_test_la_LDFLAGS = $(GETCPU_LIBTOOL_FLAGS) - -if LTTNG_TOOLS_BUILD_WITH_LIBDL -lttng_ust_getcpu_override_test_la_LIBADD = -ldl -endif -if LTTNG_TOOLS_BUILD_WITH_LIBC_DL -lttng_ust_getcpu_override_test_la_LIBADD = -lc -endif +lttng_ust_getcpu_override_test_la_SOURCES = lttng-ust-getcpu-override-test.c +lttng_ust_getcpu_override_test_la_LIBADD = $(DL_LIBS) noinst_SCRIPTS = test_getcpu_override run-getcpu-override EXTRA_DIST = test_getcpu_override run-getcpu-override @@ -35,3 +40,5 @@ clean-local: rm -f $(builddir)/$$script; \ done; \ fi + +endif