build-sys: Fixup prerequisites on OpenBSD, remove outdated casing.

Signed-off-by: Moritz Buhl <mbuhl@openbsd.org>
This commit is contained in:
Moritz Buhl 2026-06-01 13:12:17 +02:00 committed by Stefan Berger
parent df74dfee58
commit 2c3ddfea18

View File

@ -708,10 +708,8 @@ LDFLAGS_ARCH += $(findstring -m64, $(AM_CFLAGS))
LDFLAGS_ARCH += $(findstring -m32, $(AM_LDFLAGS))
LDFLAGS_ARCH += $(findstring -m64, $(AM_LDFLAGS))
check-local: SHELL?="/usr/bin/env bash"
check-local:
@case $(host_os) in \
openbsd*) ADDLIBS="-lc" ;; \
darwin*|freebsd*) LDFLAGS_OS="-shared" ;; \
*) ADDLIBS="" ;; \
esac; \
@ -719,7 +717,6 @@ check-local:
(echo "There are undefined symbols in libtpms ($$LDFLAGS_OS $(LDFLAGS_ARCH))";\
$(CC) $$LDFLAGS_OS $(LDFLAGS_ARCH) -nostdlib -L./.libs -ltpms $$ADDLIBS 2>&1 | grep libtpms))
@case $(host_os) in \
openbsd*) ADDLIBS="-lc" ;; \
darwin*|freebsd*) LDFLAGS_OS="-shared" ;; \
*) ADDLIBS="" ;; \
esac; \