lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On 22/04/2014 10:46, Dirk Laurie wrote:
2014-04-22 10:04 GMT+02:00 David Demelier <demelier.david@gmail.com>:
On 21/04/2014 16:18, Dirk Laurie wrote:
there is one bit of utf8 functionality I want in liblua.so
Do you mean liblua.a?

http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN49

I know. However, at least on Linux, there is no liblua.so.

$ locate liblua.so
$

Instead, liblua.a is statically linked with the host program (e.g. `lua`)
and your modules get the API functions from there. If you write your
own host, you need to include `liblua.a` with your .o files when linking.

Usually good distributions provides always two versions of libraries, shared and static.

$ pkg info -l lua52-5.2.3_2 | grep liblua
    /usr/local/lib/liblua-5.2.a
    /usr/local/lib/liblua-5.2.so