Generated makefiles would ignore DL_LIBS value selected by configure
script and use the hard coded value -ldl. Generated makefiles will
now use DL_LIBS.
Refs: #1165
Signed-off-by: Yannick Lamarre <ylamarre@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
noinst_LTLIBRARIES = libtestpoint.la
libtestpoint_la_SOURCES = testpoint.h testpoint.c
noinst_LTLIBRARIES = libtestpoint.la
libtestpoint_la_SOURCES = testpoint.h testpoint.c
-libtestpoint_la_LIBADD = -ldl
+libtestpoint_la_LIBADD = $(DL_LIBS)
noinst_PROGRAMS = prog
prog_SOURCES = prog.c tp.c tp.h
noinst_PROGRAMS = prog
prog_SOURCES = prog.c tp.c tp.h
-prog_LDADD = -llttng-ust -ldl
+prog_LDADD = -llttng-ust $(DL_LIBS)
noinst_SCRIPTS = test_baddr-statedump test_baddr-statedump.py
EXTRA_DIST = test_baddr-statedump test_baddr-statedump.py
noinst_SCRIPTS = test_baddr-statedump test_baddr-statedump.py
EXTRA_DIST = test_baddr-statedump test_baddr-statedump.py
noinst_PROGRAMS = prog
prog_SOURCES = prog.c
noinst_PROGRAMS = prog
prog_SOURCES = prog.c
noinst_LTLIBRARIES = libzzz.la libbar.la libfoo.la libtp.la
noinst_LTLIBRARIES = libzzz.la libbar.la libfoo.la libtp.la
noinst_PROGRAMS = userspace-probe-sdt-binary
userspace_probe_sdt_binary_SOURCES = userspace-probe-sdt-binary.c sema.h sema.c
noinst_PROGRAMS = userspace-probe-sdt-binary
userspace_probe_sdt_binary_SOURCES = userspace-probe-sdt-binary.c sema.h sema.c
-userspace_probe_sdt_binary_LDADD = foobar_provider.o libfoo.la libbar.la -ldl
+userspace_probe_sdt_binary_LDADD = foobar_provider.o libfoo.la libbar.la $(DL_LIBS)
userspace_probe_sdt_binary_CFLAGS = -I$(abs_builddir)
nodist_userspace_probe_sdt_binary_SOURCES = $(abs_builddir)/foobar_provider.h
userspace_probe_sdt_binary_CFLAGS = -I$(abs_builddir)
nodist_userspace_probe_sdt_binary_SOURCES = $(abs_builddir)/foobar_provider.h