Wednesday, 9 September 2015

[gccsdk] Dynamic linking

Thanks for the advice. The / prefix should be no problem as internally
Lua uses separate environment variables for paths for dynamically
loaded Lua and dynamically loaded C modules.

> The GCCSDK shared library system doesn't support using dlopen from a
> statically linked executable.

Oh dear. Lua is usually built as a core with statically linked main
libraries plus dynamically linked extra libraries. The loader is
in the main library "loadlib" and if the compiler flag LUA_USE_DLOPEN
is defined it uses "dlfcn" in the GNU C library to implement dlopen.
Do I take it that GCC's implementation of dlfcn works with the
SOManager?

It ought to be possible to make "loadlib" dynamically loadable instead
of statically, if that is what is needed.

--
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment