From 2f680db530996204949edcf3f14c3c7569c1a21f Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 2 Nov 2024 13:43:17 +0100 Subject: Assume unknown operating systems use ELF. There's a lot of new Unix-like operating systems out that that might port LibreSSL (my Sortix is among them) and they all use ELF. If the operating system doesn't use ELF or isn't an Unix, it doesn't have a chance at working out of this box anyway, and this change makes LibreSSL work on a generic and sufficiently featured POSIX system. --- configure.ac | 4 ---- m4/check-os-options.m4 | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 87a80cc..51e096b 100644 --- a/configure.ac +++ b/configure.ac @@ -32,10 +32,6 @@ LT_INIT([pic-only]) CHECK_OS_OPTIONS -if test "$HOST_OS" = "unsupported"; then - AC_MSG_ERROR([unsupported platform: $host_os]) -fi - CHECK_C_HARDENING_OPTIONS DISABLE_AS_EXECUTABLE_STACK diff --git a/m4/check-os-options.m4 b/m4/check-os-options.m4 index 91c3021..1f0b7e4 100644 --- a/m4/check-os-options.m4 +++ b/m4/check-os-options.m4 @@ -132,7 +132,8 @@ char buf[1]; getentropy(buf, 1); AC_SUBST([PLATFORM_LDADD], ['-ldl -lmd -lnsl -lsocket']) ;; *) - HOST_OS=unsupported + HOST_OS=$host_os + HOST_ABI=elf ;; esac -- cgit v1.2.3-55-g6feb