Fix configure for cross-compilation and --arch=amd64.
authorRamiro Polla <ramiro.polla@gmail.com>
Sun, 4 May 2008 17:15:11 +0000 (17:15 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Sun, 4 May 2008 17:15:11 +0000 (17:15 +0000)
Originally committed as revision 13058 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 0abb110..b9920da 100755 (executable)
--- a/configure
+++ b/configure
@@ -1056,6 +1056,12 @@ for opt do
     esac
 done
 
+cc="${cross_prefix}${cc}"
+ar="${cross_prefix}${ar}"
+nm="${cross_prefix}${nm}"
+ranlib="${cross_prefix}${ranlib}"
+strip="${cross_prefix}${strip}"
+
 # OS specific
 case $target_os in
     beos|haiku|zeta)
@@ -1301,11 +1307,6 @@ enabled     sparc64       && enable sparc
 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}"
 
 # we need to build at least one lib type
 if ! enabled_any static shared; then