stagit

README: add instructions to build static binaries

Hiltjo Posthuma contact@arjunchoudhary.com

commit: f75dbe1 parent: 62d2d6f
1 files changed, 22 insertions(+), 0 deletions(-)
MREADME+22-0
M · README +22, -0
 1@@ -39,6 +39,28 @@ Documentation
 2 See man pages: stagit(1) and stagit-index(1).
 3 
 4 
 5+Building a static binary
 6+------------------------
 7+
 8+It may be useful to build static binaries, for example to run in a chroot.
 9+
10+It can be done like this at the time of writing (v0.24):
11+
12+cd libgit2-src
13+
14+# change the options in the CMake file: CMakeLists.txt
15+BUILD_SHARED_LIBS to OFF (static)
16+CURL to OFF              (not needed)
17+USE_SSH OFF              (not needed)
18+THREADSAFE OFF           (not needed)
19+USE_OPENSSL OFF          (not needed, use builtin)
20+
21+mkdir -p build && cd build
22+cmake ../
23+make
24+make install
25+
26+
27 Features
28 --------
29