Remove dead bitrig support, error on unsupported platforms

This commit is contained in:
Brent Cook
2024-05-28 07:00:04 -05:00
parent 0dfa4f3b76
commit 1e0d453f05
2 changed files with 8 additions and 2 deletions

View File

@@ -32,6 +32,10 @@ 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

View File

@@ -109,7 +109,7 @@ char buf[1]; getentropy(buf, 1);
)
CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE"
;;
*openbsd* | *bitrig*)
*openbsd*)
HOST_OS=openbsd
HOST_ABI=elf
AC_DEFINE([HAVE_ATTRIBUTE__BOUNDED__], [1], [OpenBSD gcc has bounded])
@@ -131,7 +131,9 @@ char buf[1]; getentropy(buf, 1);
CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__ -D_XOPEN_SOURCE=600 -DBSD_COMP"
AC_SUBST([PLATFORM_LDADD], ['-ldl -lmd -lnsl -lsocket'])
;;
*) ;;
*)
HOST_OS=unsupported
;;
esac
# Check if time_t is sized correctly