commit:     27752a65da927fadd7aac5ac18c5e8797c4e015f
Author:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sat Jun  4 04:17:58 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 29 16:28:04 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=27752a65

scripts/bootstrap-prefix.sh: add OpenBSD CHOST detection

Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 519f356d87..f1eecd65bc 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -3195,6 +3195,13 @@ if [[ -z ${CHOST} ]]; then
                                        ;;
                                esac
                                ;;
+                       OpenBSD)
+                               case `uname -m` in
+                                       amd64)
+                                               CHOST="x86_64-pc-openbsd`uname 
-r | sed 's|-.*$||'`"
+                                       ;;
+                               esac
+                               ;;
                        *)
                                eerror "Nothing known about platform `uname 
-s`."
                                eerror "Please set CHOST appropriately for your 
system"

Reply via email to