From 326030a5fe1c681a4e2436598a53d6ad89cdeff6 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 13 Sep 2021 15:05:52 -0400 Subject: Link with -ldl on Linux Why Linux always gotta be different? --- Makefile | 2 +- configure | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c6daf8e..8fdd295 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ TEST_DB = litterbox.sqlite -include config.mk -LDLIBS = -lm ${LDADD.kcgi} ${LDADD.kcgi-html} +LDLIBS = -lm ${LDADD.dl} ${LDADD.kcgi} ${LDADD.kcgi-html} OBJS += contexts.o OBJS += css.o diff --git a/configure b/configure index 97cfafc..fd96edd 100755 --- a/configure +++ b/configure @@ -41,6 +41,7 @@ case "$(uname)" in ;; (Linux) cflags -D_GNU_SOURCE + ldadd dl -ldl config kcgi kcgi-html ;; (*) -- cgit 1.4.1