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

Kamil Rytarowski git at videolan.org
Tue Mar 13 22:04:17 CET 2018


vlc/vlc-3.0 | branch: master | Kamil Rytarowski <n54 at gmx.com> | Tue Mar 13 21:04:26 2018 +0100| [2dd378521364c56f07847d1dd3741ee96e61eb1c] | 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>
(cherry picked from commit b6968b7d36769370fe20e095070e665ef2dbf097)
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 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