From 1917e09c994175e50a583494bc399fabda322a61 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 19 Aug 2025 23:55:20 -0400 Subject: Libdl fix for openbsd --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 03563e56..227d4cc6 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ CFLAGS=$(CCONFIG) $(INCLUDE_DIRS) $(EXTRA) $(CWARN) $(G) $(O) $(OSFLAGS) $(LTO) -DTOMO_PREFIX='"$(PREFIX)"' -DSUDO='"$(SUDO)"' -DDEFAULT_C_COMPILER='"$(DEFAULT_C_COMPILER)"' \ -DTOMO_VERSION='"$(TOMO_VERSION)"' -DGIT_VERSION='"$(GIT_VERSION)"' CFLAGS_PLACEHOLDER="$$(printf '\033[2m\033[m\n')" -LDLIBS=-lgc -lm -lunistring -lgmp -ldl +LDLIBS=-lgc -lm -lunistring -lgmp LIBTOMO_FLAGS=-shared DEFINE_AS_OWNER=as_owner() { \ @@ -87,6 +87,8 @@ DEFINE_AS_OWNER=as_owner() { \ ifeq ($(OS),OpenBSD) LDLIBS += -lexecinfo +else + LDLIBS += -ldl endif AR_FILE=libtomo_$(TOMO_VERSION).a -- cgit v1.2.3