[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: win32 programmer, linux newb needs help: lua/luasql
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 22 Aug 2006 17:13:40 -0300
> I assume this is to encourage the use of static linking? I've seen some
> references to increased performance by avoiding position-independent code.
Yes, it's to encourage linking Lua into your application. But please
note that even if Lua is static linked into the interpreter, the Lua
API is exposed to dynamic libraries (the incantation for that in Linux
with the GNU ld is -Wl,-E). So, we also encourage Lua to be extended with
dynamic libraries. You may not need this in your application.
There may be some small performance penalty in PIC code but that was not the
motivation for encouraging static linking.
--lhf