If architecture type is __x86_64__, use /hal/lib64 path.
Change-Id: Ifee4aebb8a86a4f3ecfe2053b027d20288008067
Reported-by: Sungguk Na <sungguk.na@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
if (!info)
return NULL;
-#if defined(__aarch64__)
+#if defined(__aarch64__) || defined(__x86_64__)
return info->library_name_64bit;
#else
return info->library_name;
DIR *dir;
char *backend_module_name = NULL;
int count, i, ret, len;
-#if defined(__aarch64__)
+#if defined(__aarch64__) || defined(__x86_64__)
const char hal_backend_path[] = "/hal/lib64";
#else
const char hal_backend_path[] = "/hal/lib";
new_info->module = info->module;
new_info->license = info->license;
new_info->module_name = g_strdup(info->module_name);
-#if defined(__aarch64__)
+#if defined(__aarch64__) || defined(__x86_64__)
new_info->library_name_64bit = g_strdup_printf("/hal/lib64/%s", library_name);
#else
new_info->library_name = g_strdup_printf("/hal/lib/%s", library_name);
ret = hal_common_get_backend_library_name(info.module_, ret_library_name, MAX_BUFF);
EXPECT_TRUE(ret == TIZEN_ERROR_NONE);
-#if defined(__aarch64__)
+#if defined(__aarch64__) || defined(__x86_64__)
EXPECT_STREQ(info.library_name_64bit_, ret_library_name) << "module name is " << info.module_name_;
#else
EXPECT_STREQ(info.library_name_, ret_library_name) << "module name is " << info.module_name_;