diff options
author | Jonas 'Sortie' Termansen <sortie@maxsi.org> | 2024-11-02 13:43:17 +0100 |
---|---|---|
committer | Jonas 'Sortie' Termansen <sortie@maxsi.org> | 2024-11-02 13:45:50 +0100 |
commit | 2f680db530996204949edcf3f14c3c7569c1a21f (patch) | |
tree | e866f31ec1d6bf8ecb95ce5eebeb982ad72f6bed | |
parent | b478250379a0627ad8914c765307260fb97e6bec (diff) | |
download | portable-2f680db530996204949edcf3f14c3c7569c1a21f.tar.gz portable-2f680db530996204949edcf3f14c3c7569c1a21f.tar.bz2 portable-2f680db530996204949edcf3f14c3c7569c1a21f.zip |
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.
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | 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]) | |||
32 | 32 | ||
33 | CHECK_OS_OPTIONS | 33 | CHECK_OS_OPTIONS |
34 | 34 | ||
35 | if test "$HOST_OS" = "unsupported"; then | ||
36 | AC_MSG_ERROR([unsupported platform: $host_os]) | ||
37 | fi | ||
38 | |||
39 | CHECK_C_HARDENING_OPTIONS | 35 | CHECK_C_HARDENING_OPTIONS |
40 | 36 | ||
41 | DISABLE_AS_EXECUTABLE_STACK | 37 | 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); | |||
132 | AC_SUBST([PLATFORM_LDADD], ['-ldl -lmd -lnsl -lsocket']) | 132 | AC_SUBST([PLATFORM_LDADD], ['-ldl -lmd -lnsl -lsocket']) |
133 | ;; | 133 | ;; |
134 | *) | 134 | *) |
135 | HOST_OS=unsupported | 135 | HOST_OS=$host_os |
136 | HOST_ABI=elf | ||
136 | ;; | 137 | ;; |
137 | esac | 138 | esac |
138 | 139 | ||