[MPlayer-dev-eng] [PATCH] fix external libFLAC detection on Mandrake

Götz Waschk waschk at informatik.uni-rostock.de
Mon Oct 6 09:13:17 CEST 2003


Hi everyone,

on my Mandrake system the configure check for the external libFLAC
fails, unless I apply the attached patch. As this is trivial, it would
be nice if it could be applied.

Thanks, Götz
-- 
What difference does it make to the dead, the orphans and the
homeless, whether the mad destruction is wrought under the name of
totalitarianism or the holy name of liberty or democracy?
    Mahatma Gandhi (1869 - 1948), "Non-Violence in Peace and War"
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.780
diff -u -r1.780 configure
--- configure	5 Oct 2003 15:34:40 -0000	1.780
+++ configure	6 Oct 2003 07:04:54 -0000
@@ -5259,7 +5259,7 @@
 }
 EOF
     _flac=no
-    if cc_check -lFLAC ; then
+    if cc_check -lFLAC -lm ; then
       _flac=external
     fi
   else
@@ -5272,7 +5272,7 @@
   #Still use dither.c & replay_gain from libmpflac
   _def_mpflac='#undef USE_MPFLAC_DECODER'
   _mpflac='process'
-  _ld_flac='-lFLAC -Llibmpflac -lmpflac'
+  _ld_flac='-lFLAC -lm -Llibmpflac -lmpflac'
   _codecmodules="flac(external) $_codecmodules"
   echores "yes (using external libFLAC)"
 else


More information about the MPlayer-dev-eng mailing list