Fix module loading in PURE_STATIC builds

This commit is contained in:
attilamolnar 2013-09-08 16:54:33 +02:00
parent 29694ce3d2
commit fabe111fb9
2 changed files with 3 additions and 7 deletions

View File

@ -1380,11 +1380,7 @@ struct AllModuleList {
};
#define MODULE_INIT(x) static Module* MK_ ## x() { return new x; } \
static const AllModuleList PREP_ ## x(&MK_ ## x, MODNAMESTR);
#define MODNAMESTR MODNAMESTR_FN_2(MODNAME)
#define MODNAMESTR_FN_2(x) MODNAMESTR_FN_1(x)
#define MODNAMESTR_FN_1(x) #x
static const AllModuleList PREP_ ## x(&MK_ ## x, MODNAME ".so");
#else

View File

@ -17,7 +17,7 @@
*/
#define MODNAME cmd_all
#define MODNAME "cmd_all"
#include "inspircd.h"
#include "exitcodes.h"
@ -186,7 +186,7 @@ void ModuleManager::Reload(Module* mod, HandlerBase1<void, bool>* callback)
void ModuleManager::LoadAll()
{
Load("cmd_all", true);
Load("cmd_all.so", true);
Load("cmd_whowas.so", true);
Load("cmd_lusers.so", true);
Load("cmd_privmsg.so", true);