diff mbox series

[v2,3/4] Add the GNU/Hurd as a target host

Message ID CAHP40mkKDyvxXaK6L3RcfhSY6JKXV4qSu677TDkr-KCBJ+oquA@mail.gmail.com
State New
Headers show
Series Port qemu to GNU/Hurd | expand

Commit Message

Manolo de Medici Jan. 18, 2024, 4:03 p.m. UTC
Signed-off-by: Manolo de Medici <manolo.demedici@gmail.com>
---
 configure | 2 ++
 1 file changed, 2 insertions(+)

--
2.43.0

Comments

Peter Maydell Jan. 22, 2024, 5:10 p.m. UTC | #1
On Thu, 18 Jan 2024 at 16:04, Manolo de Medici <manolodemedici@gmail.com> wrote:
>
> Signed-off-by: Manolo de Medici <manolo.demedici@gmail.com>
> ---
>  configure | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/configure b/configure
> index 21ab9a64e9..fb11ede5b2 100755
> --- a/configure
> +++ b/configure
> @@ -353,6 +353,8 @@ elif check_define __NetBSD__; then
>    host_os=netbsd
>  elif check_define __APPLE__; then
>    host_os=darwin
> +elif check_define __GNU__; then
> +  host_os=hurd
>  else

Meson's official value for the OS name for GNU Hurd
is "gnu":
https://mesonbuild.com/Reference-tables.html#operating-system-names

so we should use the same string here in configure too.

thanks
-- PMM
diff mbox series

Patch

diff --git a/configure b/configure
index 21ab9a64e9..fb11ede5b2 100755
--- a/configure
+++ b/configure
@@ -353,6 +353,8 @@  elif check_define __NetBSD__; then
   host_os=netbsd
 elif check_define __APPLE__; then
   host_os=darwin
+elif check_define __GNU__; then
+  host_os=hurd
 else
   # This is a fatal error, but don't report it yet, because we
   # might be going to just print the --help text, or it might