aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorThomas Bushnell, n/BSG <thomas@gnu.org>1997-05-07 19:19:04 +0000
committerThomas Bushnell, n/BSG <thomas@gnu.org>1997-05-07 19:19:04 +0000
commitedd45bd68c04e719186e497c204e5146d2137416 (patch)
treeaafddb4db916958ae18e4683f255e07afbd794f8 /gcc
parent4f988ea21dd64269a2983315eca90f6b8094f774 (diff)
downloadgcc-edd45bd68c04e719186e497c204e5146d2137416.zip
gcc-edd45bd68c04e719186e497c204e5146d2137416.tar.gz
gcc-edd45bd68c04e719186e497c204e5146d2137416.tar.bz2
Recognize either / or - as a machine/suptype separator from uname -m to cope...
Recognize either / or - as a machine/suptype separator from uname -m to cope with older systems that have the older uname. From-SVN: r14026
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 bfd3523..ea44a2a9 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