[vlc-commits] mmal: Add -lm when linking mmal_vout

Martin Storsjö git at videolan.org
Tue Jul 1 10:23:10 CEST 2014


vlc | branch: master | Martin Storsjö <martin at martin.st> | Mon Jun 30 21:26:29 2014 +0300| [f389c750405ff2234a3f841801385e8dfb51c564] | committer: Martin Storsjö

mmal: Add -lm when linking mmal_vout

This is required since mmal_vout uses the fmod function.

This fixes loading of the mmal_vout plugin on raspbian.

Signed-off-by: Martin Storsjö <martin at martin.st>

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

 modules/video_output/Modules.am |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/Modules.am b/modules/video_output/Modules.am
index 1a66064..df8fbf6 100644
--- a/modules/video_output/Modules.am
+++ b/modules/video_output/Modules.am
@@ -238,7 +238,7 @@ vout_LTLIBRARIES += $(LTLIBcaca)
 ### MMAL ###
 libmmal_vout_plugin_la_SOURCES = mmal.c
 libmmal_vout_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_mmal_vout)
-libmmal_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' $(LDFLAGS_mmal_vout)
+libmmal_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' $(LDFLAGS_mmal_vout) -lm
 libmmal_vout_plugin_la_LIBADD = $(LIBS_mmal_vout)
 EXTRA_LTLIBRARIES += libmmal_vout_plugin.la
 vout_LTLIBRARIES += $(LTLIBmmal_vout)



More information about the vlc-commits mailing list