summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-29 19:14:36 -0400
committerJune McEnroe <june@causal.agency>2020-07-29 19:14:36 -0400
commitc70ca4e9e051b7acc86d06ef30925c806576a870 (patch)
treecc2305b7265f1d0595a18c4372de379921e40ea4
parentRemove unused prevEvent (diff)
downloadscooper-c70ca4e9e051b7acc86d06ef30925c806576a870.tar.gz
scooper-c70ca4e9e051b7acc86d06ef30925c806576a870.zip
Add Linux support
Static linking on Linux (even with musl-gcc) is just too much of a pain.
People more dedicated than I am can figure it out themselves. Or how to
properly sandbox this without a chroot.
-rw-r--r--README.713
-rwxr-xr-xconfigure4
2 files changed, 12 insertions, 5 deletions
diff --git a/README.7 b/README.7
index a37d8be..0546750 100644
--- a/README.7
+++ b/README.7
@@ -1,4 +1,4 @@
-.Dd July 23, 2020
+.Dd July 29, 2020
 .Dt README 7
 .Os "Causal Agency"
 .
@@ -18,9 +18,9 @@ and full-text search.
 .Sh INSTALLING
 .Nm
 targets
-.Fx
-and
-.Ox ,
+.Fx ,
+.Ox
+and Linux,
 and requires
 .Lk "https://kristaps.bsd.lv/kcgi/" kcgi
 and SQLite.
@@ -32,7 +32,10 @@ make install
 .Ed
 .
 .Pp
-By default,
+On
+.Fx
+and
+.Ox ,
 .Nm
 is statically linked
 so it can easily run in
diff --git a/configure b/configure
index c55e71a..2047624 100755
--- a/configure
+++ b/configure
@@ -35,6 +35,10 @@ case "$(uname)" in
 		echo 'LDFLAGS += -static'
 		config --static kcgi kcgi-html sqlite3
 		;;
+	(Linux)
+		cflags -D_GNU_SOURCE
+		config kcgi kcgi-html sqlite3
+		;;
 	(*)
 		config kcgi kcgi-html sqlite3
 		;;