Commit 487a54d7 authored by Fabrice Bellard's avatar Fabrice Bellard

cross compiling support

Originally committed as revision 1034 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 0e7eed09
...@@ -267,6 +267,8 @@ ar="${cross_prefix}${ar}" ...@@ -267,6 +267,8 @@ ar="${cross_prefix}${ar}"
ranlib="${cross_prefix}${ranlib}" ranlib="${cross_prefix}${ranlib}"
strip="${cross_prefix}${strip}" strip="${cross_prefix}${strip}"
if test -z "$cross_prefix" ; then
# --- # ---
# big/little endian test # big/little endian test
cat > $TMPC << EOF cat > $TMPC << EOF
...@@ -283,6 +285,15 @@ else ...@@ -283,6 +285,15 @@ else
echo big/little test failed echo big/little test failed
fi fi
else
# if cross compiling, cannot launch a program, so make a static guess
if test "$cpu" = "powerpc" -o "$cpu" = "mips" ; then
bigendian="yes"
fi
fi
# --- # ---
# check availability of some header files # check availability of some header files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment