[SCM] libav/experimental: fix extern prefix detection when cross compiling. Patch by Michael Kostylev: mik niipt ru

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:17:12 UTC 2013


The following commit has been merged in the experimental branch:
commit 503d5b585ffd71c0fd82eba671f74dea645fcecd
Author: Michael Kostylev <michael.kostylev at gmail.com>
Date:   Tue Mar 18 12:08:37 2008 +0000

    fix extern prefix detection when cross compiling.
    Patch by Michael Kostylev: mik niipt ru
    
    Originally committed as revision 12486 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/configure b/configure
index ac46aeb..ca79f82 100755
--- a/configure
+++ b/configure
@@ -888,6 +888,7 @@ bindir='$(PREFIX)/bin'
 # toolchain
 cc="gcc"
 ar="ar"
+nm="nm"
 ranlib="ranlib"
 make="make"
 strip="strip"
@@ -1315,6 +1316,7 @@ LDFLAGS="$FFLDFLAGS $LDFLAGS"
 test -n "$cross_prefix" && enable cross_compile
 cc="${cross_prefix}${cc}"
 ar="${cross_prefix}${ar}"
+nm="${cross_prefix}${nm}"
 ranlib="${cross_prefix}${ranlib}"
 strip="${cross_prefix}${strip}"
 
@@ -1494,7 +1496,7 @@ fi
 check_cc <<EOF || die "Symbol mangling check failed."
 int ff_extern;
 EOF
-sym=$(nm -P -g $TMPO)
+sym=$($nm -P -g $TMPO)
 extern_prefix=${sym%%ff_extern*}
 
 check_asm inline_asm '""'

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list