From: Michael Tremer Date: Thu, 12 Nov 2009 10:30:32 +0000 (+0100) Subject: Fix recognition of architectures a machine can build. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94e7af31353de764349463b3c8a73aa1f930b9bf;p=ipfire-3.x.git Fix recognition of architectures a machine can build. --- diff --git a/tools/make-check b/tools/make-check index a6a341c8f..b7bcc6e1f 100644 --- a/tools/make-check +++ b/tools/make-check @@ -154,6 +154,14 @@ check_cpu() { } check_supported_target() { + + if [ "$1" == "x86_64" ]; then + if [ "$(uname -m)" != "x86_64" ]; then + echo "Your system hasn't got the right architecture to build target $1." >&2 + return 1 + fi + fi + local FLAGS if [ "$1" = "via-c7" ]; then FLAGS="sse sse2 pni" @@ -162,7 +170,7 @@ check_supported_target() { elif [ "$1" = "atom" ]; then FLAGS="mmx sse sse2 pni ssse3" elif [ "$1" = "core2duo" ]; then - FLAGS="sse2" + FLAGS="sse2 pni ssse3" fi for j in $FLAGS; do if ! check_cpu $j; then