Look for CROSS_COMPILE when building the simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26589 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6ea6dce4b5
commit
efbc5df5f7
1 changed files with 10 additions and 3 deletions
13
tools/configure
vendored
13
tools/configure
vendored
|
@ -97,7 +97,7 @@ findsdl(){
|
|||
simcc () {
|
||||
|
||||
# default tool setup for native building
|
||||
prefixtools ""
|
||||
prefixtools "$CROSS_COMPILE"
|
||||
|
||||
simver=sdl
|
||||
winbuild="$crosscompile"
|
||||
|
@ -204,7 +204,10 @@ EOF
|
|||
|
||||
$CC -o $tmpdir/conftest-$id $tmpdir/conftest-$id.c 2>/dev/null
|
||||
|
||||
if test `$tmpdir/conftest-$id 2>/dev/null` -gt "1"; then
|
||||
# when cross compiling, the endianess cannot be detected because the above program doesn't run
|
||||
# on the local machine. assume little endian but print a warning
|
||||
endian=`$tmpdir/conftest-$id 2> /dev/null`
|
||||
if [ "$endian" != "" ] && [ $endian -gt "1" ]; then
|
||||
# big endian
|
||||
endian="big"
|
||||
else
|
||||
|
@ -212,6 +215,10 @@ EOF
|
|||
endian="little"
|
||||
fi
|
||||
|
||||
if [ "$CROSS_COMPILE" != "" ]; then
|
||||
echo "WARNING: Cross Compiling, cannot detect endianess. Assuming little endian!"
|
||||
fi
|
||||
|
||||
if [ $1 = "sdl" ]; then
|
||||
echo "Simulator environment deemed $endian endian"
|
||||
elif [ $1 = "checkwps" ]; then
|
||||
|
@ -2841,7 +2848,7 @@ else
|
|||
fi
|
||||
|
||||
case $prefix in
|
||||
"")
|
||||
""|"$CROSS_COMPILE")
|
||||
# simulator
|
||||
;;
|
||||
i586-mingw32msvc-)
|
||||
|
|
Loading…
Reference in a new issue