+# SPDX-License-Identifier: GPL-2.0-only
+
if NO_SHARED
# Do not build this test if shared libraries support was
# explicitly disabled.
AM_CPPFLAGS += -I$(srcdir) -g
+# Disable some warnings flags to accomodate the tracepoint headers
+AM_CFLAGS += \
+ -Wno-redundant-decls
+
noinst_PROGRAMS = prog
prog_SOURCES = prog.c
-prog_LDADD = -ldl
+prog_LDADD = $(DL_LIBS)
noinst_LTLIBRARIES = libzzz.la libbar.la libfoo.la libtp.la