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

Konstantin Pavlov git at videolan.org
Thu Dec 7 19:39:24 CET 2017


vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Thu Dec  7 09:27:48 2017 +0000| [d58a64505dd5488b328201ac6ea11919055279e9] | committer: Konstantin Pavlov

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.

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

 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