Fix link errors with libswscale/libavutil as shared libraries
authorSteven Walters <kemuri9@gmail.com>
Fri, 24 Jun 2011 00:29:01 +0000 (20:29 -0400)
committerFiona Glaser <fiona@x264.com>
Sun, 10 Jul 2011 02:39:54 +0000 (19:39 -0700)
configure

index d539afe..41f7a7c 100755 (executable)
--- a/configure
+++ b/configure
@@ -717,8 +717,8 @@ fi
 if [ "$swscale" = "auto" ] ; then
     swscale="no"
     if ${cross_prefix}pkg-config --exists libswscale 2>/dev/null; then
-        SWSCALE_LIBS="$SWSCALE_LIBS $(${cross_prefix}pkg-config --libs libswscale)"
-        SWSCALE_CFLAGS="$SWSCALE_CFLAGS $(${cross_prefix}pkg-config --cflags libswscale)"
+        SWSCALE_LIBS="$SWSCALE_LIBS $(${cross_prefix}pkg-config --libs libswscale libavutil)"
+        SWSCALE_CFLAGS="$SWSCALE_CFLAGS $(${cross_prefix}pkg-config --cflags libswscale libavutil)"
     fi
     [ -z "$SWSCALE_LIBS" ] && SWSCALE_LIBS="-lswscale -lavutil"