Private
Public Access
2
0

building.md: Add note for static builds and bindings

Closes #864

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2018-02-07 09:42:12 +01:00
parent 616ffc0b94
commit 568c077061

View File

@@ -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 Sometimes it's nice to build a static library, on Linux systems just set
`-DBUILD_SHARED_LIBS=OFF` `-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 ## Dependencies continued