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:
>   The interesting thing, is that in MacOSX I don't need to add to
> the linker. It simply finds the functions (of course requiring module1
> before module2). In Linux I can link without using, 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 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).