summaryrefslogtreecommitdiff
path: root/gnu/lib/libiberty/config.sub
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-01-25 05:31:05 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-01-25 05:31:05 +0000
commit13d4c08a39faeab278fdc17dab9d3e10ca4a17c8 (patch)
tree7a85e1087d61867703880146bb0fbb16b0af0f81 /gnu/lib/libiberty/config.sub
parentac81a348c54ff04e221ed6836be6ee763c6a9f8d (diff)
simplify OpenBSD case by using arch(1) and sed to grab
the machine architecture. We now output amd64 instead of x86_64 as it should be. ok deraadt@ pvalchev@
Diffstat (limited to 'gnu/lib/libiberty/config.sub')
-rw-r--r--gnu/lib/libiberty/config.sub6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/lib/libiberty/config.sub b/gnu/lib/libiberty/config.sub
index 2ab7f25694c..53f9660a58a 100644
--- a/gnu/lib/libiberty/config.sub
+++ b/gnu/lib/libiberty/config.sub
@@ -371,6 +371,12 @@ case $basic_machine in
basic_machine=a29k-none
os=-bsd
;;
+ amd64)
+ basic_machine=x86_64-pc
+ ;;
+ amd64-*)
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
amdahl)
basic_machine=580-amdahl
os=-sysv