[MEncoder-users] ./configure ignores --extra-libs= while checking for features

Giacomo Comes comes at naic.edu
Mon Aug 6 18:58:05 CEST 2007


On Mon, Aug 06, 2007 at 06:28:23PM +0200, Moritz Barsnick wrote:
> Hi,
> 
> due to some peculiar behavior, I noticed that ./configure is missing
> the proper use of --extra-libs= during feature check.
> 
> The function compile_check() passes the flags from the variables
> $_libs_mplayer and $_libs_mencoder to the compiler, but fails to do so
> with $_extra_libs, which is a more generic equivalent of the two.
> 
> I had some libs explicitly stated with --extra-libs= (e.g. X11), but
> compile_check() didn't pick these us, and therefore some checks failed.
> (In my case it failed to pick up my specific X11 dir containing
> libXv.so, and the created binary was linked with -lXv, but didn't have
> the appropriate RPATH from my command line, so the binary refused to
> execute.)
> 
> An easy, but I think correct, fix is attached.
> 
> (SVN r24015)
> 
> Thanks for listening. :)
> 
> Regards,
> Moritz

I suspect the problem you are having is related to a bug I found about 9 months
ago and that never got fixed.
Please try the attached patch and tell me if it solves your problem too.

Giacomo
-------------- next part --------------
diff -Nraub mplayer.ori/configure mplayer/configure
--- mplayer.ori/configure	2007-04-11 11:31:54.000000000 -0400
+++ mplayer/configure	2007-04-11 13:44:14.000000000 -0400
@@ -7428,7 +7428,7 @@
 for I in $_libs_mplayer ; do
   _tmp=`echo $I | sed -e 's/^-L.*$//'`
   if test -z "$_tmp" ; then
-    _ld_extra="$I $_ld_extra"
+    _ld_extra="$_ld_extra $I"
   else
     _ld_tmp="$_ld_tmp $I"
   fi


More information about the MEncoder-users mailing list