+# SPDX-License-Identifier: GPL-2.0-only
+
if NO_SHARED
# Do not build this test if shared libraries support was
# explicitly disabled.
noinst_PROGRAMS = prog
prog_SOURCES = prog.c
-prog_LDADD = -ldl
+prog_LDADD = $(DL_LIBS)
noinst_LTLIBRARIES = libzzz.la libbar.la libfoo.la libtp.la
@cp -f .libs/libtp.so libtp.so
noinst_SCRIPTS = test_ust-dl test_ust-dl.py
-EXTRA_DIST = test_ust-dl test_ust-dl.py
+EXTRA_DIST = test_ust-dl.py
all-local: libfoo.so libbar.so libzzz.so libtp.so
@if [ x"$(srcdir)" != x"$(builddir)" ]; then \