Do not link against libdl on OpenBSD

This commit is contained in:
Bob Polis 2022-10-17 12:11:23 +02:00
parent ff9cd0e0f1
commit 3dad4173e7

View File

@ -39,7 +39,15 @@ else
CXXFLAGS += -D NDEBUG -O3 CXXFLAGS += -D NDEBUG -O3
endif endif
LDLIBS := -lm -lscgui -lSDL2 -lcairo -lscerror -lscstring -lscscreensaver -ldl -lscnumerics LDLIBS := -lm -lscgui -lSDL2 -lcairo -lscerror -lscstring -lscscreensaver -lscnumerics
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LDLIBS += -ldl
endif
ifeq ($(UNAME_S),Linux)
LDLIBS += -ldl
endif
.PHONY: all clean install modules new .PHONY: all clean install modules new