]> git.sesse.net Git - ffmpeg/commitdiff
Fix lrintf detection when extra libs are not installed in a standard location.
authorPatrice Bensoussan <patrice.bensoussan@free.fr>
Sat, 22 Oct 2005 19:17:39 +0000 (19:17 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sat, 22 Oct 2005 19:17:39 +0000 (19:17 +0000)
patch by Patrice Bensoussan patrice = dot = bensoussan = at = gmail = dot = com

Originally committed as revision 4658 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 6fd3ae86186b06a3ee15d9735870ec7755d47d2d..c3cf948bcb3772e30cd471ca0d74afbf4fbf073b 100755 (executable)
--- a/configure
+++ b/configure
@@ -985,7 +985,7 @@ int main( void ) { return (lrintf(3.999f) > 0)?0:1; }
 EOF
 
 have_lrintf="no"
-if $cc $extralibs -o $TMPE $TMPC 2> /dev/null ; then
+if $cc $CFLAGS $LDFLAGS $extralibs -o $TMPE $TMPC 2> /dev/null ; then
   have_lrintf="yes"
   # allanc@chickenandporn.com: cannot execute cross-compiled
   # code on the host.  Only execute if not cross-compiling.