Enforce DL_LIBS value instead of hard coded -ldl
authorYannick Lamarre <ylamarre@efficios.com>
Fri, 22 Feb 2019 19:33:38 +0000 (14:33 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 28 Mar 2019 19:52:47 +0000 (15:52 -0400)
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>
src/common/testpoint/Makefile.am
tests/regression/ust/baddr-statedump/Makefile.am
tests/regression/ust/ust-dl/Makefile.am
tests/utils/testapp/userspace-probe-sdt-binary/Makefile.am

index 5c15725eb56741acf6c94d8f3a642a31ea1d877d..a2f9d407abd8ca7f6b0f4cdc55d781992a514045 100644 (file)
@@ -1,4 +1,4 @@
 noinst_LTLIBRARIES = libtestpoint.la
 
 libtestpoint_la_SOURCES = testpoint.h testpoint.c
-libtestpoint_la_LIBADD = -ldl
+libtestpoint_la_LIBADD = $(DL_LIBS)
index bf32717978734c3d5ade23f6be245a85f4775ab4..bf51f94837f31feda2598298f006451802d7ecf0 100644 (file)
@@ -6,7 +6,7 @@ AM_CPPFLAGS += -I$(srcdir) -g
 
 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
index 9889e85a49ad1b3179dfbd12d9eeb2a5946d538a..c51e072fc62efedd157c2a25aa9881c54e9ca319 100644 (file)
@@ -19,7 +19,7 @@ AM_CPPFLAGS += -I$(srcdir) -g
 
 noinst_PROGRAMS = prog
 prog_SOURCES = prog.c
-prog_LDADD = -ldl
+prog_LDADD = $(DL_LIBS)
 
 noinst_LTLIBRARIES = libzzz.la libbar.la libfoo.la libtp.la
 
index e86939b4c0a6a6cac68f5e9504eef960725937f0..d79ce0ea3fbc9cfc10b66a7c7998f3de78d8ca0c 100644 (file)
@@ -3,7 +3,7 @@ BUILT_SOURCES = foobar_provider.h
 
 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
 
This page took 0.043607 seconds and 4 git commands to generate.