projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
902ebfe
)
modified Makefile.am to build shared module (.so)
author
pk910
<philipp@zoelle1.de>
Sun, 12 Feb 2012 16:19:59 +0000
(17:19 +0100)
committer
pk910
<philipp@zoelle1.de>
Sun, 12 Feb 2012 16:19:59 +0000
(17:19 +0100)
Makefile.am
patch
|
blob
|
history
src/modules.c
patch
|
blob
|
history
diff --git
a/Makefile.am
b/Makefile.am
index 43a21228d1a426a2a00a961a82bef5471bdaa9ec..7dd5232b6cc50a85275c550242f6c05e97398be5 100644
(file)
--- a/
Makefile.am
+++ b/
Makefile.am
@@
-7,7
+7,7
@@
checkversion:
cd src && chmod +x version.sh && ./version.sh && cd ..
noinst_PROGRAMS = neonserv
cd src && chmod +x version.sh && ./version.sh && cd ..
noinst_PROGRAMS = neonserv
-
noinst
_LTLIBRARIES = libDummyServ.la libfuncmds.la libglobalcmd.la libNeonHelp.la libNeonServ.la libNeonSpam.la
+
pkglib
_LTLIBRARIES = libDummyServ.la libfuncmds.la libglobalcmd.la libNeonHelp.la libNeonServ.la libNeonSpam.la
libDummyServ_la_SOURCES = src/modules/DummyServ.mod/bot_DummyServ.c \
src/modules/DummyServ.mod/module.c
libDummyServ_la_SOURCES = src/modules/DummyServ.mod/bot_DummyServ.c \
src/modules/DummyServ.mod/module.c
diff --git
a/src/modules.c
b/src/modules.c
index b8d3fec91cec76eb27d3d540531fd2e87fe5a95d..064d84f64a67192b2358af4a2d747f1a1c99e67e 100644
(file)
--- a/
src/modules.c
+++ b/
src/modules.c
@@
-283,10
+283,10
@@
void loadModules() {
int loadModule(char *name) {
char fname[256];
#ifndef WIN32
int loadModule(char *name) {
char fname[256];
#ifndef WIN32
- sprintf(fname, "%s.
a
", name);
+ sprintf(fname, "%s.
so
", name);
void* module = dlopen(fname, RTLD_LAZY);
if(!module) {
void* module = dlopen(fname, RTLD_LAZY);
if(!module) {
- sprintf(fname, ".libs/%s.
a
", name);
+ sprintf(fname, ".libs/%s.
so
", name);
module = dlopen(fname, RTLD_LAZY);
if(!module) {
putlog(LOGLEVEL_ERROR, "Error loading module '%s': %s not found.\n", name, fname);
module = dlopen(fname, RTLD_LAZY);
if(!module) {
putlog(LOGLEVEL_ERROR, "Error loading module '%s': %s not found.\n", name, fname);