From 88ad79d3dde0a4bdc1fb4609785046063e9c05cc Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Thu, 22 Dec 2022 14:48:33 +0900 Subject: [PATCH] Fix app2sd library path Use macro instead of hardcoded path. Change-Id: I23248a2f4681044216633a45543abe23f00c9ff6 Signed-off-by: Sangyoon Jang --- src/common/CMakeLists.txt | 1 + src/common/app2ext_dynamic_service.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 9858674..2ad5f8b 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -71,6 +71,7 @@ SET(PLUGINS_LIST_FILE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/plugins/${PLUGINS_LIST_FI SET(PLUGINS_LIST_INSTALL_PATH ${SHAREDIR}/parser-plugins) +ADD_DEFINITIONS("-DLIBDIR=\"${LIBDIR}\"") ADD_DEFINITIONS("-DPLUGINS_LIST_INSTALL_PATH=\"${PLUGINS_LIST_INSTALL_PATH}\"") IF(NOT DEFINED TIZEN_FULL_VERSION) MESSAGE(FATAL_ERROR "TIZEN_FULL_VERSION MUST BE defined") diff --git a/src/common/app2ext_dynamic_service.cc b/src/common/app2ext_dynamic_service.cc index b29d71f..299ca0f 100644 --- a/src/common/app2ext_dynamic_service.cc +++ b/src/common/app2ext_dynamic_service.cc @@ -16,7 +16,7 @@ const std::string& enable_pkg_sym_name = "app2ext_usr_enable_external_pkg"; const std::string& get_image_path_sym_name = "app2ext_usr_get_image_path"; const std::string& init_sym_name = "app2ext_init"; const std::string& deinit_sym_name = "app2ext_deinit"; -const std::string& LIBNAME = "/usr/lib/libapp2ext.so.0"; +const std::string& LIBNAME = LIBDIR"/libapp2ext.so.0"; } -- 2.7.4