Most applications make use of shared libraries, which saves system memory and disk space, as they are shared between different applications. Modularizing code into libraries also allows for easier versioning and code management.
This recipe will explain how to work with both static and shared libraries in Linux and Yocto.
By convention, library files start with the lib
prefix.
There are basically two library types:
Libraries are placed in the following standard root filesystem locations:
/lib
: Libraries required for startup/usr/lib
: Most system libraries/usr/local/lib
: Non-system libraries
Dynamic libraries follow certain naming conventions on running systems so that...