diff options
| author | Brent Cook <busterb@gmail.com> | 2024-05-28 07:00:04 -0500 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2024-05-28 07:00:04 -0500 |
| commit | 1e0d453f05c316e5d568b43cb59128ba696a89b5 (patch) | |
| tree | e9812419131a550849913d4454b96f2697717ad6 | |
| parent | 0dfa4f3b764521f4ee23850b705973c4b55b23b7 (diff) | |
| download | portable-1e0d453f05c316e5d568b43cb59128ba696a89b5.tar.gz portable-1e0d453f05c316e5d568b43cb59128ba696a89b5.tar.bz2 portable-1e0d453f05c316e5d568b43cb59128ba696a89b5.zip | |
Remove dead bitrig support, error on unsupported platforms
| -rw-r--r-- | configure.ac | 4 | ||||
| -rw-r--r-- | m4/check-os-options.m4 | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 51e096b..87a80cc 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -32,6 +32,10 @@ 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 | |||
| 35 | CHECK_C_HARDENING_OPTIONS | 39 | CHECK_C_HARDENING_OPTIONS |
| 36 | 40 | ||
| 37 | DISABLE_AS_EXECUTABLE_STACK | 41 | DISABLE_AS_EXECUTABLE_STACK |
diff --git a/m4/check-os-options.m4 b/m4/check-os-options.m4 index 77edd14..a8c4904 100644 --- a/m4/check-os-options.m4 +++ b/m4/check-os-options.m4 | |||
| @@ -109,7 +109,7 @@ char buf[1]; getentropy(buf, 1); | |||
| 109 | ) | 109 | ) |
| 110 | CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE" | 110 | CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE" |
| 111 | ;; | 111 | ;; |
| 112 | *openbsd* | *bitrig*) | 112 | *openbsd*) |
| 113 | HOST_OS=openbsd | 113 | HOST_OS=openbsd |
| 114 | HOST_ABI=elf | 114 | HOST_ABI=elf |
| 115 | AC_DEFINE([HAVE_ATTRIBUTE__BOUNDED__], [1], [OpenBSD gcc has bounded]) | 115 | AC_DEFINE([HAVE_ATTRIBUTE__BOUNDED__], [1], [OpenBSD gcc has bounded]) |
| @@ -131,7 +131,9 @@ char buf[1]; getentropy(buf, 1); | |||
| 131 | CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__ -D_XOPEN_SOURCE=600 -DBSD_COMP" | 131 | CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__ -D_XOPEN_SOURCE=600 -DBSD_COMP" |
| 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 | ||
| 136 | ;; | ||
| 135 | esac | 137 | esac |
| 136 | 138 | ||
| 137 | # Check if time_t is sized correctly | 139 | # Check if time_t is sized correctly |
