Fix x64 arch compatibility 13/3713/1
authorBaptiste DURAND <baptiste.durand@eurogiciel.fr>
Wed, 29 May 2013 08:01:28 +0000 (10:01 +0200)
committerBaptiste DURAND <baptiste.durand@eurogiciel.fr>
Wed, 29 May 2013 08:01:28 +0000 (10:01 +0200)
Fix harcoded lib path in the code

parser/CMakeLists.txt
parser/pkgmgr_parser.c

index 870973d..dbfa642 100755 (executable)
@@ -30,7 +30,7 @@ pkg_check_modules(parser_pkgs REQUIRED dlog libxml-2.0 glib-2.0 sqlite3 db-util
 foreach(flag ${parser_pkgs_CFLAGS})
        set(parser_pkgs_CFLAGS_str "${parser_pkgs_CFLAGS_str} ${flag}")
 endforeach()
-
+ADD_DEFINITIONS("-DLIB_PATH=\"${LIB_INSTALL_DIR}\"")
 ## Additional flag
 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden")
 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -g -Wall")
index 80f7314..5c23acc 100755 (executable)
@@ -3302,7 +3302,7 @@ static char* __convert_to_system_locale(const char *mlocale)
        return locale;
 }
 
-#define LIBAIL_PATH "/usr/lib/libail.so.0"
+#define LIBAIL_PATH LIB_PATH "/libail.so.0"
 
 /* operation_type */
 typedef enum {
@@ -3695,7 +3695,7 @@ static int __ps_remove_nativeapp_desktop(manifest_x *mfx)
         return 0;
 }
 
-#define LIBAPPSVC_PATH "/usr/lib/libappsvc.so.0"
+#define LIBAPPSVC_PATH LIB_PATH "/libappsvc.so.0"
 
 static int __ps_remove_appsvc_db(manifest_x *mfx)
 {