X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fdlopen%2FMakefile.am;h=de05346c710b37251d2861946f169d8c4d4b6d79;hb=c6c454ab6ca9d19041d4f16e6139b514fe1b954f;hp=89fd9dbfc57b993a16d700654b4cd429cbb76247;hpb=bf24b009e15fdf7c9c5fdf464a2576ce8cd7dfc3;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