Support 64bit Image 18/236418/1
authorKunhoon Baik <knhoon.baik@samsung.com>
Wed, 17 Jun 2020 03:12:06 +0000 (12:12 +0900)
committerKunhoon Baik <knhoon.baik@samsung.com>
Wed, 17 Jun 2020 03:14:10 +0000 (12:14 +0900)
64bit Image uses libraries from /usr/lib64 (from _libdir macro)
This patch is correction for that.

Change-Id: I3810334e947002596cb13a45fbce1df78d7897e7

Makefile
packaging/stability-monitor.spec
src/stability-monitor.c

index eafaffa..6aa08ce 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,7 @@ CFLAGS = \
        -Wall \
        -I$(srcdir) \
        `pkg-config --cflags $(libs)` \
+       -DDEFAULT_CONFIG_FILE="\"$(DEFAULT_CONFIG_FILE)\"" \
        -D_GNU_SOURCE \
        -fPIE
 
index e23cd38..5168dd1 100644 (file)
@@ -31,7 +31,8 @@ Tests for stability monitoring tool
 cp %{SOURCE1} ./%{name}.manifest
 
 %build
-make stability-monitor
+make stability-monitor DEFAULT_CONFIG_FILE=%{_libdir}/stability-monitor/default.conf
+
 make -C tests all
 
 %install
index cfebe34..0bf2bf1 100644 (file)
@@ -32,7 +32,6 @@
 #include "raw_data.h"
 #include "data_source.h"
 
-#define DEFAULT_CONFIG_FILE "/usr/lib/stability-monitor/default.conf"
 #define USER_CONFIG_DIR  "/etc/stability-monitor.d"
 
 
@@ -318,4 +317,4 @@ int main(int argc, char *argv[])
     cleanup();
 
     return 0;
-}
\ No newline at end of file
+}