summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKunhoon Baik <knhoon.baik@samsung.com>2016-11-28 14:47:41 +0900
committerKunhoon Baik <knhoon.baik@samsung.com>2016-11-28 14:48:41 +0900
commitcb96a38a5ab014cbba868dae1a92597abffd8640 (patch)
tree88f681d0a1afb7ac68b447833c541ce19775a492
parent0bb864d44950815f5138b7a52d650f0bb48bef3c (diff)
downloadsystem-plugin-cb96a38a5ab014cbba868dae1a92597abffd8640.tar.gz
system-plugin-cb96a38a5ab014cbba868dae1a92597abffd8640.tar.bz2
system-plugin-cb96a38a5ab014cbba868dae1a92597abffd8640.zip
Change-Id: I6121281e34014c04f5375b13fc776d6591659e7c
-rw-r--r--packaging/system-plugin.spec3
-rw-r--r--src/systemd-user-helper/systemd-user-helper.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/packaging/system-plugin.spec b/packaging/system-plugin.spec
index f16d192..fe80dd9 100644
--- a/packaging/system-plugin.spec
+++ b/packaging/system-plugin.spec
@@ -120,7 +120,8 @@ cp %{SOURCE3} .
--disable-debug-mode \
--disable-eng-mode
-%__make %{?jobs:-j%jobs}
+%__make %{?jobs:-j%jobs} \
+ CFLAGS+=-DLIBDIR=\\\"%{_libdir}\\\"
%install
rm -rf %{buildroot}
diff --git a/src/systemd-user-helper/systemd-user-helper.c b/src/systemd-user-helper/systemd-user-helper.c
index a61a90d..6ffe977 100644
--- a/src/systemd-user-helper/systemd-user-helper.c
+++ b/src/systemd-user-helper/systemd-user-helper.c
@@ -36,8 +36,8 @@
#define LEGACY_CONTENTS_DIR "/opt/usr/media"
#define LEGACY_APPS_DIR "/opt/usr/apps"
-#define LAZYMOUNT_LIB "/usr/lib/liblazymount.so.0"
-#define CONTAINER_LIB "/usr/lib/security/pam_krate.so"
+#define LAZYMOUNT_LIB LIBDIR"/liblazymount.so.0"
+#define CONTAINER_LIB LIBDIR"/security/pam_krate.so"
#define LOAD_SYMBOL(handle, sym, name) \
do { \