From e2fb4adae5d0f7e6734c456ddc63774a0e4fd3c3 Mon Sep 17 00:00:00 2001 From: Pavel Kulyov Date: Fri, 31 Oct 2025 15:57:32 +0300 Subject: [PATCH] readme: add docs about static compilation --- Readme.org | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Readme.org b/Readme.org index 9e0b73a..8b76d6a 100644 --- a/Readme.org +++ b/Readme.org @@ -21,7 +21,22 @@ https://wiki.call-cc.org/man/5/Extension%20tools#changing-the-repository-locatio ~chicken-install `cat dependencies.txt`~ ** Compilation -~make~ +#+begin_src sh + make +#+end_src + +** Static compilation +The default ~CSC_FLAGS~ include ~-static~, so ~sexc~ does not need +~.eggs~ at runtime and ~make install~ stays relocatable. Chicken must +provide ~libchicken.a~ (E.g. for gentoo: ~dev-scheme/chicken~ with +~static-libs~ use flag). + +To link dynamically instead (the binary will look for eggs under this +tree's ~.eggs~ path): + +#+begin_src sh + make CSC_FLAGS='-K prefix' +#+end_src * Usage ** Summary