[vlc-commits] contribs: ffmpeg: work around the ffmpeg configure check for libmp3lame.

Konstantin Pavlov git at videolan.org
Thu Dec 7 23:25:54 CET 2017


vlc/vlc-3.0 | branch: master | Konstantin Pavlov <thresh at videolan.org> | Thu Dec  7 09:27:48 2017 +0000| [f5a9076160cebba33b1ab85d455d2709dce68676] | committer: Jean-Baptiste Kempf

contribs: ffmpeg: work around the ffmpeg configure check for libmp3lame.

On Linux, libmp3lame.a requires -lm to be linked as well.  Now this
library does not have a pkg-config file, so there are not many options
to fix it.  One option is to pass extra-libs in our contrib system, and
another one is fixing libav/ffmpeg configure to try and link libmath
during the check.  Both are not good.

(cherry picked from commit d58a64505dd5488b328201ac6ea11919055279e9)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 contrib/src/ffmpeg/rules.mak | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/src/ffmpeg/rules.mak b/contrib/src/ffmpeg/rules.mak
index b721db626b..297fe4c777 100644
--- a/contrib/src/ffmpeg/rules.mak
+++ b/contrib/src/ffmpeg/rules.mak
@@ -146,7 +146,7 @@ endif
 
 # Linux
 ifdef HAVE_LINUX
-FFMPEGCONF += --target-os=linux --enable-pic
+FFMPEGCONF += --target-os=linux --enable-pic --extra-libs="-lm"
 
 endif
 



More information about the vlc-commits mailing list