* configure.ac: Do CPU substitution even if it's specified explicitly.

Reported and tested by: Alain Greppin.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-01-08 00:44:38 +01:00
parent 9462775a2d
commit ec1dfd634e
2 changed files with 11 additions and 9 deletions

View file

@ -1,3 +1,8 @@
2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
* configure.ac: Do CPU substitution even if it's specified explicitly.
Reported and tested by: Alain Greppin.
2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.

View file

@ -103,15 +103,12 @@ else
platform="$with_platform"
fi
# Adjust CPU unless target was explicitly specified.
if test -z "$target_alias"; then
case "$target_cpu"-"$platform" in
case "$target_cpu"-"$platform" in
x86_64-efi) ;;
x86_64-emu) ;;
x86_64-*) target_cpu=i386 ;;
powerpc64-ieee1275) target_cpu=powerpc ;;
esac
fi
esac
# Check if the platform is supported, make final adjustments.
case "$target_cpu"-"$platform" in