Skip to content

Commit b403751

Browse files
authored
Merge pull request #281 from Jeansen/master
docs: Add info about static build
2 parents 248341b + 9af8c18 commit b403751

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ git clone https://github.com/kubernetes-client/c
1414
CLIENT_REPO_ROOT=${PWD}/c
1515

1616
# Install pre-requisites
17-
sudo apt-get install libssl-dev libcurl4-openssl-dev libwebsockets-dev uncrustify
17+
sudo apt-get install libssl-dev libcurl4-openssl-dev libwebsockets-dev uncrustify cmake g++
1818

1919
# Build pre-requisite: libyaml
2020
git clone https://github.com/yaml/libyaml --depth 1 --branch release/0.2.5
@@ -33,6 +33,10 @@ mkdir build
3333
cd build
3434
# If you don't need to debug the C client library:
3535
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
36+
37+
# To build a static linked client library:
38+
# cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_STATIC_LIBS=ON ..
39+
3640
# If you want to use `gdb` to debug the C client library, add `-DCMAKE_BUILD_TYPE=Debug` to the cmake command line, e.g.
3741
# cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/local ..
3842
make

0 commit comments

Comments
 (0)