vlc/compat/Makefile.am
Kamil Rytarowski b6968b7d36 Link libcompat with a library with math functions
We detect whether math functions are located in -lm in configure.ac.
Reuse the deliberable of this check and link libcompat with $(LIBM).
This is required at least for sincos() functions and it has been
reported as required on NetBSD 8.0.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2018-03-13 23:03:20 +02:00

22 lines
471 B
Makefile

pkglib_LTLIBRARIES = libcompat.la
libcompat_la_SOURCES = dummy.c
libcompat_la_LIBADD = $(LTLIBOBJS) $(LIBRT) $(LIBM)
libcompat_la_LDFLAGS = -no-undefined -static
BUILT_SOURCES = dummy.c
CLEANFILES = dummy.c
AUTOMAKE_OPTIONS = subdir-objects
dummy.c:
$(AM_V_at)rm -f dummy.c
$(AM_V_GEN)echo '/* Automatically generated */' > dummy.c
check_PROGRAMS = \
test_strnstr
TESTS = $(check_PROGRAMS)
test_strnstr_SOURCES = test/strnstr.c
test_strnstr_LDADD = libcompat.la