From f2d49ceed38594dad4bddc9ffb473825261abd73 Mon Sep 17 00:00:00 2001 From: Changgyu Choi Date: Thu, 22 Dec 2022 15:02:49 +0900 Subject: [PATCH] Fix library path for aarch64 Change-Id: Iae49825da7d587a49550279b79ae324223144cb5 Signed-off-by: Changgyu Choi --- CMakeLists.txt | 1 + tizen-cpp/app-core-efl-cpp/voice_elm_private.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a21670c..68f96dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,6 +50,7 @@ PKG_CHECK_MODULES(VCONF_DEPS REQUIRED vconf) PKG_CHECK_MODULES(WAYLAND_CLIENT_DEPS REQUIRED wayland-client) PKG_CHECK_MODULES(WAYLAND_TBM_CLIENT_DEPS REQUIRED wayland-tbm-client) +ADD_DEFINITIONS("-DLIBDIR=\"${LIBDIR}\"") ADD_SUBDIRECTORY(tizen-cpp) ADD_SUBDIRECTORY(legacy) ADD_DEPENDENCIES(appcore-common app-core-cpp) diff --git a/tizen-cpp/app-core-efl-cpp/voice_elm_private.cc b/tizen-cpp/app-core-efl-cpp/voice_elm_private.cc index 9c49b7b..9d33197 100644 --- a/tizen-cpp/app-core-efl-cpp/voice_elm_private.cc +++ b/tizen-cpp/app-core-efl-cpp/voice_elm_private.cc @@ -28,7 +28,7 @@ namespace tizen_cpp { namespace { -constexpr const char kPathLibVcElm[] = "/usr/lib/libvc-elm.so.0"; +constexpr const char kPathLibVcElm[] = LIBDIR"/libvc-elm.so.0"; constexpr const char kNameVcElmInitialize[] = "vc_elm_initialize"; constexpr const char kNameVcElmDeinitialize[] = "vc_elm_deinitialize"; constexpr const char kNameVcElmSetAutoRegisterMode[] = -- 2.7.4