This removes the need to do sudo ninja install stuff to install a shared object globally. Instead we are telling meson to build a static library (libdeltachat.a), which we bake into the final deltachat.node binary.
Note also that we need to tell node-gyp to include the other static libraries built by ninja, together with sqlite3 and sasl.
An unrelated side note: We figured out that my problems with ssl was related to node.js being linked against an older version of openssl which conflicted with the version deltachat-core was linked against, which caused deltachat-core to try to call into an open ssl init function that was never loaded by node.
This removes the need to do
sudo ninja install
stuff to install a shared object globally. Instead we are tellingmeson
to build a static library (libdeltachat.a
), which we bake into the finaldeltachat.node
binary.Note also that we need to tell
node-gyp
to include the other static libraries built byninja
, together withsqlite3
andsasl
.An unrelated side note: We figured out that my problems with ssl was related to
node.js
being linked against an older version ofopenssl
which conflicted with the versiondeltachat-core
was linked against, which causeddeltachat-core
to try to call into an open ssl init function that was never loaded bynode
.