From c70ca4e9e051b7acc86d06ef30925c806576a870 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 29 Jul 2020 19:14:36 -0400 Subject: 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. --- README.7 | 13 ++++++++----- configure | 4 ++++ 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 ;; -- cgit 1.4.1