[vlc-commits] Link libcompat with a library with math functions

Kamil Rytarowski git at videolan.org
Tue Mar 13 22:03:36 CET 2018


vlc | branch: master | Kamil Rytarowski <n54 at gmx.com> | Tue Mar 13 21:04:26 2018 +0100| [b6968b7d36769370fe20e095070e665ef2dbf097] | committer: Rémi Denis-Courmont

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 at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b6968b7d36769370fe20e095070e665ef2dbf097
---

 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



More information about the vlc-commits mailing list