lua-users home
lua-l archive

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


On Wed, Jun 23, 2010 at 02:20:47PM -0300, Antonio Scuri wrote:
<snip>
>   The interesting thing, is that in MacOSX I don't need to add module1.so to
> the linker. It simply finds the functions (of course requiring module1
> before module2). In Linux I can link without using module1.so, but then it
> fails to require module2. Maybe there is a parameter to the linker for
> dynamic library just like "-Wl,-E" exists for the executable.
> 
> Best,
> Scuri

See http://lua-users.org/lists/lua-l/2006-11/msg00210.html it seems to me
that the issue is that lua loads modules without setting their symbols
globally, so module2 can't find the symbols module1 exports which is why
5.2 adds control over that flag (to package.loadlib at least).

    -Etan