lua-users home
lua-l archive

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


>   So maybe in MacOSX It should be always RTLD_GLOBAL.

Or maybe you should use 'loadlib' instead of 'require'. The documentation
of 'loadlib' explicitly states:

  If funcname is "*", then it only links with the library, making the
  symbols exported by the library available to other dynamically linked
  libraries.

So, 'loadlib' does (or should do) exactly what you want. With 'require'
you are assuming an undocumented side effect that may have other
consequences (e.g., name conflicts across required libraries).

-- Roberto