[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luaU_dump() and #define LUAI_FUNC __attribute__((visibility("hidden"))) extern
- From: Miles Bader <miles@...>
- Date: Thu, 04 Apr 2013 09:51:08 +0900
Craig Barnes <firstname.lastname@example.org> writes:
> On 4 April 2013 00:16, Luiz Henrique de Figueiredo
> <email@example.com> wrote:
>>> when linking luac.c with (a shared) liblua there is a problem:
>> luac is meant to be linked statically with liblua.
> What about the many Linux distributions that don't allow static linking?
Are there actually such? I know many distributions strongly _prefer_
dynamic linking, for obvious maintainability reasons, but there are
always some cases where static linking is required for technical
In the case of luac the "maintainability" issue is actually much less
than it is generally, because they're part of the same source package,
so are very likely to be updated in tandem anyway. liblua is also
small enough that the size advantages of dynamic linking probably
aren't significant either.
It is a little ugly that luac can't be dynamically linked tho...
Patience, n. A minor form of despair, disguised as a virtue.