[vlc-devel] [PATCH] Link libcompat with a library with math functions
Kamil Rytarowski
n54 at gmx.com
Mon Mar 12 15:18:04 CET 2018
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.
---
compat/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compat/Makefile.am b/compat/Makefile.am
index 58094d44a4..d709d565c5 100644
--- a/compat/Makefile.am
+++ b/compat/Makefile.am
@@ -1,6 +1,6 @@
pkglib_LTLIBRARIES = libcompat.la
libcompat_la_SOURCES = dummy.c
-libcompat_la_LIBADD = $(LTLIBOBJS) $(LIBRT)
+libcompat_la_LIBADD = $(LTLIBOBJS) $(LIBRT) $(LIBM)
libcompat_la_LDFLAGS = -no-undefined -static
BUILT_SOURCES = dummy.c
--
2.16.2
More information about the vlc-devel
mailing list