summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorthomas <thomas@138bc75d-0d04-0410-961f-82ee72b054a4>1997-05-07 19:19:04 +0000
committerthomas <thomas@138bc75d-0d04-0410-961f-82ee72b054a4>1997-05-07 19:19:04 +0000
commit8dd75003ab7ce406c950f23e493e9baef9c3094f (patch)
treeaafddb4db916958ae18e4683f255e07afbd794f8 /gcc
parent4ca042ab948d36f2b4e713b278507a05d4cd97c7 (diff)
downloadgcc-8dd75003ab7ce406c950f23e493e9baef9c3094f.tar.gz
Recognize either / or - as a machine/suptype separator from uname -m
to cope with older systems that have the older uname. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14026 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/config.guess2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config.guess b/gcc/config.guess
index bfd352355e1..ea44a2a9caa 100755
--- a/gcc/config.guess
+++ b/gcc/config.guess
@@ -430,7 +430,7 @@ EOF
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit 0 ;;
*:GNU:*:*)
- echo `echo ${UNAME_MACHINE}|sed -e 's,-.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
exit 0 ;;
*:Linux:*:*)
# The BFD linker knows what the default object file format is, so