Greetings,
I am trying to port microperl (5.7.0) to an embedded environment and would like to statically link in my external C modules with it.
To accomplish this, I pulled in the auto-generated .C files from my external modules and added them to the existing object dependencies in Makefile.micro.
I also added a newXS() call to xs_init() in miniperlmain.c to preload my external modules although I am hoping to load them during init once and for all when the interpreter is instantiated (and not during perl_parse in miniperlmain.c).
Of course, this does not fly - the linker can't find any of the PL_xyz symbols(PL_stack_sp, PL_markstack_ptr etc etc).
Is this not possible with microperl and I need to build the whole perl enchilada statically? Should I move on to miniperl? I am essentially looking to perform the equivalent of a manual dl_open in my init code to load all the modules (external as well as CPAN) upfront.
I did try deep breathing and it works great but the linker is still complaining :>))
thanks in advance.
-- kathmandude