+# 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