iREADME: add instructions to build static binaries - stagit-gopher - A git gopher frontend. (mirror) Err bitreich.org 70 hgit clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ URL:git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ bitreich.org 70 1Log /scm/stagit-gopher/log.gph bitreich.org 70 1Files /scm/stagit-gopher/files.gph bitreich.org 70 1Refs /scm/stagit-gopher/refs.gph bitreich.org 70 1Tags /scm/stagit-gopher/tag bitreich.org 70 1README /scm/stagit-gopher/file/README.gph bitreich.org 70 1LICENSE /scm/stagit-gopher/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 821a948d0801a4c115257b59352bf441e39c0922 /scm/stagit-gopher/commit/821a948d0801a4c115257b59352bf441e39c0922.gph bitreich.org 70 1parent 9884619350ec8c8e27886a17607112cff251cc9f /scm/stagit-gopher/commit/9884619350ec8c8e27886a17607112cff251cc9f.gph bitreich.org 70 hAuthor: Hiltjo Posthuma URL:mailto:hiltjo@codemadness.org bitreich.org 70 iDate: Sat, 25 Mar 2017 13:28:46 +0100 Err bitreich.org 70 i Err bitreich.org 70 iREADME: add instructions to build static binaries Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M README | 22 ++++++++++++++++++++++ Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 22 insertions(+), 0 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/README b/README /scm/stagit-gopher/file/README.gph bitreich.org 70 i@@ -39,6 +39,28 @@ Documentation Err bitreich.org 70 i See man pages: stagit(1) and stagit-index(1). Err bitreich.org 70 i Err bitreich.org 70 i Err bitreich.org 70 i+Building a static binary Err bitreich.org 70 i+------------------------ Err bitreich.org 70 i+ Err bitreich.org 70 i+It may be useful to build static binaries, for example to run in a chroot. Err bitreich.org 70 i+ Err bitreich.org 70 i+It can be done like this at the time of writing (v0.24): Err bitreich.org 70 i+ Err bitreich.org 70 i+cd libgit2-src Err bitreich.org 70 i+ Err bitreich.org 70 i+# change the options in the CMake file: CMakeLists.txt Err bitreich.org 70 i+BUILD_SHARED_LIBS to OFF (static) Err bitreich.org 70 i+CURL to OFF (not needed) Err bitreich.org 70 i+USE_SSH OFF (not needed) Err bitreich.org 70 i+THREADSAFE OFF (not needed) Err bitreich.org 70 i+USE_OPENSSL OFF (not needed, use builtin) Err bitreich.org 70 i+ Err bitreich.org 70 i+mkdir -p build && cd build Err bitreich.org 70 i+cmake ../ Err bitreich.org 70 i+make Err bitreich.org 70 i+make install Err bitreich.org 70 i+ Err bitreich.org 70 i+ Err bitreich.org 70 i Features Err bitreich.org 70 i -------- Err bitreich.org 70 i Err bitreich.org 70 .