module : change the plugin path according to the library of arch. 25/124625/1 accepted/tizen/unified/20170412.152524 submit/tizen/20170412.041900
authorwchang kim <wchang.kim@samsung.com>
Wed, 12 Apr 2017 04:05:52 +0000 (13:05 +0900)
committerwchang kim <wchang.kim@samsung.com>
Wed, 12 Apr 2017 04:05:52 +0000 (13:05 +0900)
Change-Id: Ib2bfd2842aab2677e39efddd6a014c757ba1e34a

CMakeLists.txt
src/core/modules.c

index 94cdef2..6c0c6f3 100755 (executable)
@@ -25,6 +25,8 @@ SET(PKG_MODULES
        vconf
 )
 
+ADD_DEFINITIONS("-DLIBPATH=\"${LIB_INSTALL_DIR}\"")
+
 INCLUDE(FindPkgConfig)
 pkg_check_modules(${PROJECT_NAME}_pkgs REQUIRED ${PKG_MODULES})
 
index 5bcaa98..d4d6e8f 100644 (file)
 #include "module-intf.h"
 #include "log.h"
 
-#define PLUGIN_PATH "/usr/lib/storaged"
+#ifndef LIBPATH
+#error LIBPATH is not defined.
+#endif
+
+#define PLUGIN_PATH LIBPATH"/storaged"
 
 struct storaged_module {
        char *name;