about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-05-01 19:47:53 +0200
committerbptato <nincsnevem662@gmail.com>2025-05-01 20:34:37 +0200
commit6d6978b1debfdd68bd2a0521f2d28021009f806a (patch)
tree29be3b8cdf277ad4aec7ba3a117aa0e976b6fe28
parent6d7ba989361cd307c84264611dc8987dc3cb9707 (diff)
downloadchawan-6d6978b1debfdd68bd2a0521f2d28021009f806a.tar.gz
Makefile: fix installation with static linking
-rw-r--r--Makefile5
-rw-r--r--doc/build.md3
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 12ba019c..20fd7689 100644
--- a/Makefile
+++ b/Makefile
@@ -237,6 +237,11 @@ install:
 	done
 # urldec is just a symlink to urlenc
 	(cd $(LIBEXECDIR_CHAWAN) && ln -sf urlenc urldec)
+ifeq ($(STATIC_LINK),1)
+	(cd $(LIBEXECDIR_CHAWAN/cgi-bin) && ln -sf ssl http)
+	(cd $(LIBEXECDIR_CHAWAN/cgi-bin) && ln -sf ssl gemini)
+	(cd $(LIBEXECDIR_CHAWAN/cgi-bin) && ln -sf ssl sftp)
+endif
 	mkdir -p "$(DESTDIR)$(MANPREFIX1)"
 	for f in $(manpages1); do install -m644 "doc/$$f" "$(DESTDIR)$(MANPREFIX1)"; done
 	mkdir -p "$(DESTDIR)$(MANPREFIX5)"
diff --git a/doc/build.md b/doc/build.md
index aa1c45d1..4ec6ae77 100644
--- a/doc/build.md
+++ b/doc/build.md
@@ -106,7 +106,8 @@ gcc.exe = "musl-gcc"
 gcc.linkerexe = "musl-gcc"
 ```
 
-* Compile and install OpenSSL, libssh2 and libbrotlidec to `/usr/local/musl`.
+* Compile and install OpenSSL, libssh2, libbrotlicommon and libbrotlidec
+  to `/usr/local/musl`.
 * Compile Chawan:
 
 ```sh