From 00666e7b39fbb24d75a78bb00f9813a77a001259 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Sun, 5 Mar 2017 08:29:01 +1100 Subject: [PATCH] * config.guess (*:FreeBSD:*:*): Refactor CPU handling. Canonicalize i386-*-freebsd* to i586-*-freebsd*. Signed-off-by: Ben Elliston --- ChangeLog | 5 +++++ config.guess | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 39b611a..7db01e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-03-05 Gerald Pfeifer + + * config.guess (*:FreeBSD:*:*): Refactor CPU handling. + Canonicalize i386-*-freebsd* to i586-*-freebsd*. + 2017-02-07 Ben Elliston Reported by Hugues Lefebvre . diff --git a/config.guess b/config.guess index 1000e2b..69ed3e5 100755 --- a/config.guess +++ b/config.guess @@ -2,7 +2,7 @@ # Attempt to guess a canonical system name. # Copyright 1992-2017 Free Software Foundation, Inc. -timestamp='2017-02-07' +timestamp='2017-03-05' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -837,10 +837,11 @@ EOF UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) - echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - *) - echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + UNAME_PROCESSOR=x86_64 ;; + i386) + UNAME_PROCESSOR=i586 ;; esac + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin