Static Linking on Linux

Miscellaneous Forums/Linux Discussion/Static Linking on Linux

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Oh, you can't static link to a shared object.

You'd need a static (.a) version of it.... which usually means getting the source and building the static version. The same with any other libs you need.

Of course, the whole thing about shared libraries, is that they are shared, so you don't need to have every app on Linux with its own copy of a library, statically linked in.


My BaH.libcurl (and libcurlssl) modules are an example of building it from source into a static library (in this case a custom version specifically for a module).