Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum wrote:
I added the unused (afaics) MODPATH variable to the install of the .so in dynamic_module_makefile, changed this line in the install target: $(TMP_BINDIR)/install_module module.so $(SYSTEM_MODULE_PATH)/$(MODDIR)$(MODPATH)$(MODULE_WRAPPER_PREFIX)$(MODNAME).so
Um, isn't that what MODDIR is supposed to be for? See the Parser module.
Well, I don't know (will look in Parser mod to see what I find) and it certainly isn't fixed in well manner, but it works. The trick was to not affect the path for the .pmod files, since then they would still end up in a different directory from the .so, which was the problem to start with.
I can look into making a better solution, but I'll guess it'll take a bit longer, since I have to learn how this stuff works and figure out what my changes will affect.