Mercurial > mplayer.hg
changeset 36882:89c3ef454d9e
Add the proper CFLAGS when compiling against shared FFmpeg.
Using pkg-configs --cflags when testing but not when compiling
makes no sense.
author | reimar |
---|---|
date | Wed, 05 Mar 2014 18:48:23 +0000 |
parents | 36f6023a9127 |
children | e299b6fd7eaa |
files | configure |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Wed Mar 05 18:42:10 2014 +0000 +++ b/configure Wed Mar 05 18:48:23 2014 +0000 @@ -7089,6 +7089,7 @@ inc_ffmpeg=$($_pkg_config --cflags libswscale libavformat libavcodec libavutil) ld_tmp=$($_pkg_config --libs libswscale libavformat libavcodec libavutil) header_check libavutil/avutil.h $inc_ffmpeg $ld_tmp && + extra_cflags="$extra_cflags $inc_ffmpeg" && extra_ldflags="$extra_ldflags $ld_tmp" && ffmpeg_so=yes && ffmpeg=yes elif header_check libavutil/avutil.h -lswscale -lavformat -lavcodec -lavutil ; then extra_ldflags="$extra_ldflags -lswscale -lavformat -lavcodec -lavutil" @@ -7134,6 +7135,7 @@ inc_postproc=$($_pkg_config --cflags libpostproc) ld_tmp=$($_pkg_config --libs libpostproc) header_check libpostproc/postprocess.h $inc_postproc $ld_tmp && + extra_cflags="$extra_cflags $inc_postproc" && extra_ldflags="$extra_ldflags $ld_tmp" && postproc=yes elif header_check libpostproc/postprocess.h -lpostproc ; then extra_ldflags="$extra_ldflags -lpostproc"