Skip to content

Commit

Permalink
Assume unknown operating systems use ELF.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sortie committed Nov 2, 2024
1 parent b478250 commit 2f680db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion m4/check-os-options.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f680db

Please sign in to comment.