Fix configure for cross-compilation and --arch=amd64.

Originally committed as revision 13058 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ramiro Polla 2008-05-04 17:15:11 +00:00
parent 4b13335d1c
commit adb2b90890

11
configure vendored
View File

@ -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