X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fdlopen%2FMakefile.am;h=de05346c710b37251d2861946f169d8c4d4b6d79;hb=90cefaa31af0a85593a155fba8570e04c653225a;hp=89fd9dbfc57b993a16d700654b4cd429cbb76247;hpb=277d6e1d016e69184fd49b867ff1268d3ff668f5;p=lttng-ust.git diff --git a/tests/dlopen/Makefile.am b/tests/dlopen/Makefile.am index 89fd9dbf..de05346c 100644 --- a/tests/dlopen/Makefile.am +++ b/tests/dlopen/Makefile.am @@ -6,7 +6,14 @@ libdummy_la_SOURCES = libdummy.c libdummy_la_LIBADD = $(top_builddir)/libust/libust.la $(top_builddir)/libust-initializer.o libdummy_la_LDFLAGS = -rpath /nowhere dlopen_SOURCES = dlopen.c -dlopen_LDADD = -ldl $(top_builddir)/libust/libust.la $(top_builddir)/libust-initializer.o +dlopen_LDADD = $(top_builddir)/libust/libust.la $(top_builddir)/libust-initializer.o + +if LTTNG_UST_BUILD_WITH_LIBDL +dlopen_LDADD += -ldl +endif +if LTTNG_UST_BUILD_WITH_LIBC_DL +dlopen_LDADD += -lc +endif noinst_SCRIPTS = run EXTRA_DIST = run