1
0
Fork 0
forked from len0rd/rockbox

configure fixes.

1) use " instead of ' to expand variable
2) fix x86 arch autodetection (android toolchain doesnt use _X86_)

Change-Id: Ibf73b6ccfdb1baee3bb2f77d8f298119ecbfe16c
This commit is contained in:
Thomas Martitz 2012-03-30 22:52:09 +02:00
parent 4e8893b874
commit b18d76a1c4

4
tools/configure vendored
View file

@ -237,7 +237,7 @@ simcc () {
GCCOPTS="$GCCOPTS -fno-builtin -g"
GCCOPTIMIZE=''
LDOPTS='$LDOPTS -lm' # button-sdl.c uses sqrt()
LDOPTS="$LDOPTS -lm" # button-sdl.c uses sqrt()
sigaltstack=""
fibers=""
endian="" # endianess of the dap doesnt matter here
@ -3686,7 +3686,7 @@ if [ -z "$arch" ]; then
arch_version="$(echo $cpp_defines | sed s,\ ,\\n,g | grep __ARM_ARCH | sed -e 's,.*\([0-9]\).*,\1,')"
elif [ -n "$(echo $cpp_defines | grep -w __mips__)" ]; then
arch="mips" # FIXME: autodetect version (32 or 64)
elif [ -n "$(echo $cpp_defines | grep -w _X86_)" ]; then
elif [ -n "$(echo $cpp_defines | grep -w __i386__)" ]; then
arch="x86"
elif [ -n "$(echo $cpp_defines | grep -w __x86_64__)" ]; then
arch="amd64"