Changeset 161

Show
Ignore:
Timestamp:
09/04/07 15:54:49 (20 months ago)
Author:
smoku
Message:

Fixed module loading path. Closes #62

Location:
trunk/sm
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/sm/Makefile.am

    r139 r161  
    1 INCLUDES = -DCONFIG_DIR=\"$(sysconfdir)\" 
     1INCLUDES = -DCONFIG_DIR=\"$(sysconfdir)\" -DLIBRARY_DIR=\"$(pkglibdir)\" 
    22 
    33bin_PROGRAMS = sm 
  • trunk/sm/mm.c

    r160 r161  
    175175                      snprintf(mod_fullpath, 512, "%s/mod_%s.so", modules_path, name); 
    176176                  else 
    177                       snprintf(mod_fullpath, 512, "%s/mod_%s.so", PACKAGE_DIR, name); 
     177                      snprintf(mod_fullpath, 512, "%s/mod_%s.so", LIBRARY_DIR, name); 
    178178                  mod->handle = dlopen(mod_fullpath, RTLD_LAZY); 
    179179                  if (mod->handle != NULL)