README: add instructions to build static binaries
This commit is contained in:
parent
9884619350
commit
821a948d08
1 changed files with 22 additions and 0 deletions
22
README
22
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
|
||||
--------
|
||||
|
||||
|
|
Loading…
Reference in a new issue