summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-13 15:05:52 -0400
committerJune McEnroe <june@causal.agency>2021-09-13 15:05:52 -0400
commit326030a5fe1c681a4e2436598a53d6ad89cdeff6 (patch)
treed7556b4fe8d79817def0bfa5a2f18078b641b1a5
parentDocument lack of dependency on SQLite (diff)
downloadscooper-de8ec453cf6d2551e14f124931b17357cd7a051a.tar.gz
scooper-de8ec453cf6d2551e14f124931b17357cd7a051a.zip
Link with -ldl on Linux 1.3
Why Linux always gotta be different?
-rw-r--r--Makefile2
-rwxr-xr-xconfigure1
2 files changed, 2 insertions, 1 deletions
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
 		;;
 	(*)