+# SPDX-License-Identifier: GPL-2.0-only
+
noinst_LTLIBRARIES = libtestpoint.la
-libtestpoint_la_SOURCES = testpoint.h testpoint.c
-libtestpoint_la_LIBADD = -ldl
+libtestpoint_la_SOURCES = \
+ testpoint.cpp \
+ testpoint.h
+libtestpoint_la_LIBADD = $(DL_LIBS)