[x264-devel] commit: Use cross-prefix properly with pkg-config for cross-compiling ( Steven Walters )

git version control git at videolan.org
Thu Jan 21 05:57:23 CET 2010


x264 | branch: master | Steven Walters <kemuri9 at gmail.com> | Wed Jan 20 09:00:54 2010 -0800| [20fa784d2d9e0d5e524d4e3834699e9ff9b57511] | committer: Jason Garrett-Glaser 

Use cross-prefix properly with pkg-config for cross-compiling

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=20fa784d2d9e0d5e524d4e3834699e9ff9b57511
---

 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index c066a54..9f04a18 100755
--- a/configure
+++ b/configure
@@ -416,7 +416,7 @@ fi
 
 if [ "$lavf_input" = "auto" ] ; then
     lavf_input="no"
-    if [ `pkg-config --exists libavformat libavcodec libswscale 2>$DEVNULL` ] ; then
+    if [ `${cross_prefix}pkg-config --exists libavformat libavcodec libswscale 2>$DEVNULL` ] ; then
         LAVF_LDFLAGS="$LAVF_LDFLAGS $(pkg-config --libs libavformat libavcodec libswscale)"
         LAVF_CFLAGS="$LAVF_CFLAGS $(pkg-config --cflags libavformat libavcodec libswscale)"
     fi



More information about the x264-devel mailing list