| @@ -1,16 +1,16 @@ | | | @@ -1,16 +1,16 @@ |
1 | #! /bin/sh | | 1 | #! /bin/sh |
2 | | | 2 | |
3 | # $NetBSD: bootstrap,v 1.297 2021/02/15 12:56:53 cjep Exp $ | | 3 | # $NetBSD: bootstrap,v 1.298 2021/03/15 16:22:06 ryoon Exp $ |
4 | # | | 4 | # |
5 | # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> | | 5 | # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> |
6 | # All rights reserved. | | 6 | # All rights reserved. |
7 | # | | 7 | # |
8 | # Redistribution and use in source and binary forms, with or without | | 8 | # Redistribution and use in source and binary forms, with or without |
9 | # modification, are permitted provided that the following conditions | | 9 | # modification, are permitted provided that the following conditions |
10 | # are met: | | 10 | # are met: |
11 | # 1. Redistributions of source code must retain the above copyright | | 11 | # 1. Redistributions of source code must retain the above copyright |
12 | # notice, this list of conditions and the following disclaimer. | | 12 | # notice, this list of conditions and the following disclaimer. |
13 | # 2. Redistributions in binary form must reproduce the above copyright | | 13 | # 2. Redistributions in binary form must reproduce the above copyright |
14 | # notice, this list of conditions and the following disclaimer in the | | 14 | # notice, this list of conditions and the following disclaimer in the |
15 | # documentation and/or other materials provided with the distribution. | | 15 | # documentation and/or other materials provided with the distribution. |
16 | # | | 16 | # |
| @@ -722,26 +722,31 @@ Linux) | | | @@ -722,26 +722,31 @@ Linux) |
722 | need_awk=yes | | 722 | need_awk=yes |
723 | need_pax=yes | | 723 | need_pax=yes |
724 | elif grep -sq '^CHROMEOS_RELEASE_NAME' /etc/lsb-release; then | | 724 | elif grep -sq '^CHROMEOS_RELEASE_NAME' /etc/lsb-release; then |
725 | need_awk=yes | | 725 | need_awk=yes |
726 | need_sed=yes | | 726 | need_sed=yes |
727 | fi | | 727 | fi |
728 | machine_arch=`uname -m` | | 728 | machine_arch=`uname -m` |
729 | # Override machine_arch where required. | | 729 | # Override machine_arch where required. |
730 | case "$machine_arch" in | | 730 | case "$machine_arch" in |
731 | i?86) machine_arch=i386 ;; | | 731 | i?86) machine_arch=i386 ;; |
732 | ppc64le) machine_arch=powerpc64le ;; | | 732 | ppc64le) machine_arch=powerpc64le ;; |
733 | esac | | 733 | esac |
734 | ;; | | 734 | ;; |
| | | 735 | MidnightBSD) |
| | | 736 | root_group=wheel |
| | | 737 | machine_arch=`uname -p` |
| | | 738 | check_compiler=yes |
| | | 739 | ;; |
735 | Minix) | | 740 | Minix) |
736 | root_group=wheel | | 741 | root_group=wheel |
737 | machine_arch=`uname -p` | | 742 | machine_arch=`uname -p` |
738 | check_compiler=yes | | 743 | check_compiler=yes |
739 | ;; | | 744 | ;; |
740 | MirBSD) | | 745 | MirBSD) |
741 | root_group=wheel | | 746 | root_group=wheel |
742 | need_pax=yes | | 747 | need_pax=yes |
743 | machine_arch=`arch -s` | | 748 | machine_arch=`arch -s` |
744 | # there is no /usr/bin/cc, so use mgcc if unset | | 749 | # there is no /usr/bin/cc, so use mgcc if unset |
745 | test -n "$CC" || { CC=mgcc; export CC; } | | 750 | test -n "$CC" || { CC=mgcc; export CC; } |
746 | # get some variables from the native make if unset | | 751 | # get some variables from the native make if unset |
747 | for var in CFLAGS CPPFLAGS LDFLAGS; do | | 752 | for var in CFLAGS CPPFLAGS LDFLAGS; do |