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.