Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -35,12 +35,14 @@ DEFINES   = -DVERSION=\"$(GIT_VERSION)\"
 # for dynamic linking
 LIBS      = -lssl -lcrypto
 ifneq ($(OS), FreeBSD)
+ifneq ($(OS), OpenBSD)
 ifneq ($(findstring MINGW64,$(OS)),MINGW64)
 	LIBS += -ldl
 else
 	LIBS += -lwsock32 -lWs2_32
 endif
 endif
+endif
 ifeq ($(OS), SunOS)
 	CFLAGS += -m64
 	LIBS   += -lsocket -lnsl
@@ -54,6 +56,7 @@ CFLAGS  += -D_FORTIFY_SOURCE=2 -fstack-protector-all -
 # Don't enable some hardening flags on OS X because it uses an old version of Clang
 ifneq ($(OS), Darwin)
 ifneq ($(OS), SunOS)
+ifneq ($(OS), OpenBSD)
 ifneq ($(findstring CYGWIN,$(OS)),CYGWIN)
 ifneq ($(findstring MINGW64,$(OS)),MINGW64)
 	LDFLAGS += -pie -z relro -z now
@@ -63,6 +66,7 @@ endif
 endif
 endif
 endif
+endif
 
 # Force C11 mode to fix the build on very old version of GCC
 CFLAGS += -std=gnu11
@@ -78,10 +82,12 @@ else
 LIBS         = -lssl -lcrypto -lz -lpthread
 endif
 ifneq ($(OS), FreeBSD)
+ifneq ($(OS), OpenBSD)
 ifneq ($(findstring CYGWIN,$(OS)),CYGWIN)
 	LIBS += -ldl
 endif
 endif
+endif
 ifeq ($(OS), SunOS)
 	LIBS += -lsocket -lnsl
 endif
@@ -137,6 +143,7 @@ uninstall:
 	rm -f $(DESTDIR)$(BINDIR)/sslscan
 	rm -f $(DESTDIR)$(MAN1DIR)/sslscan.1
 
+ifneq ($(OS), OpenBSD)
 .openssl.is.fresh: opensslpull
 	true
 opensslpull:
@@ -145,6 +152,7 @@ opensslpull:
 	else \
 	git clone --depth 1 -b `git ls-remote https://github.com/openssl/openssl | grep -Eo '(openssl-3\.0\.[0-9]+)' | sort -V | tail -n 1` https://github.com/openssl/openssl ./openssl && cd ./openssl && touch ../.openssl.is.fresh ; \
 	fi
+endif
 
 openssl/Makefile: .openssl.is.fresh
 	cd ./openssl; ./Configure -v -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIC no-shared enable-weak-ssl-ciphers zlib
