aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2017-03-25 13:28:46 +0100
committerHiltjo Posthuma <[email protected]>2017-03-25 13:28:46 +0100
commit821a948d0801a4c115257b59352bf441e39c0922 (patch)
treec391295649d59bb1d55e3f3bcbf7b6598a68f32a /README
parent9884619350ec8c8e27886a17607112cff251cc9f (diff)
downloadstagit-821a948d0801a4c115257b59352bf441e39c0922.tar.gz
stagit-821a948d0801a4c115257b59352bf441e39c0922.zip
README: add instructions to build static binaries
Diffstat (limited to 'README')
-rw-r--r--README22
1 files changed, 22 insertions, 0 deletions
diff --git a/README b/README
index df92000..e49323b 100644
--- a/README
+++ b/README
@@ -39,6 +39,28 @@ Documentation
See man pages: stagit(1) and stagit-index(1).
+Building a static binary
+------------------------
+
+It may be useful to build static binaries, for example to run in a chroot.
+
+It can be done like this at the time of writing (v0.24):
+
+cd libgit2-src
+
+# change the options in the CMake file: CMakeLists.txt
+BUILD_SHARED_LIBS to OFF (static)
+CURL to OFF (not needed)
+USE_SSH OFF (not needed)
+THREADSAFE OFF (not needed)
+USE_OPENSSL OFF (not needed, use builtin)
+
+mkdir -p build && cd build
+cmake ../
+make
+make install
+
+
Features
--------