Skip to content

Commit

Permalink
building.md: Add note for static builds and bindings
Browse files Browse the repository at this point in the history
Closes eclipse#864

Signed-off-by: Brendan Le Foll <[email protected]>
  • Loading branch information
arfoll committed Feb 7, 2018
1 parent 616ffc0 commit 568c077
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ CC flags to the CC env var

Sometimes it's nice to build a static library, on Linux systems just set
`-DBUILD_SHARED_LIBS=OFF`
Note that for static builds the python bindings will not build as they would
require a static python etc... You can try to link mraa statically to the
python binding module by adding -fPIC with `-DCMAKE_C_FLAGS=-fPIC`. You can
also use the node.js gyp build system to get node.js static bindings.

## Dependencies continued

Expand Down

0 comments on commit 568c077

Please sign in to comment.