Support both /usr/lib and /usr/lib64 38/288838/1
authorsangwook lee <sangwook96.lee@samsung.com>
Thu, 23 Feb 2023 10:39:18 +0000 (19:39 +0900)
committersangwook lee <sangwook96.lee@samsung.com>
Thu, 23 Feb 2023 10:39:18 +0000 (19:39 +0900)
Change-Id: I2426c7768970690bc554b7568fb4f342cc04a5f4
Signed-off-by: sangwook lee <sangwook96.lee@samsung.com>
src/plugin.h

index 72345c6cf4f28f77f5befd393c61382984fd14f2..4b44874b431345584d519bf93c56f9810cb1e8d7 100755 (executable)
@@ -18,8 +18,9 @@
 #define __PLUGIN_H
 
 #include "sdbd_plugin.h"
+#define STR(R) #R
 
-#define PLUGIN_PATH        "/usr/lib/libsdbd_plugin.so"
+#define PLUGIN_PATH        STR(LIBDIR)"/libsdbd_plugin.so"
 #define PLUGIN_XML_PATH    "/etc/sdbd/commands.xml"
 
 extern char* extcmd;