joestubbs / tagent

0 stars 1 forks source link

Explore static linking #17

Open waltermoreira opened 2 years ago

waltermoreira commented 2 years ago

We want to explore the possibility to statically compile tagent, including the libraries it requires (e.g., libsqlite). Also, explore state of the art for this kind of situation: is it better to statically build?.. or to link dynamically and create packages for different distros?

If building statically works, we can have a single binary that can be distributed easily.

waltermoreira commented 2 years ago

Looks like for full static linking of native/external libraries, we need to jump some hoops. Here are two resources I found:

In summary, we need to build against musl instead of glibc, and the external libraries also need to be built against that C library.