From: Sangyoon Jang Date: Thu, 22 Dec 2022 05:48:33 +0000 (+0900) Subject: Fix app2sd library path X-Git-Tag: accepted/tizen/7.0/unified/20230102.132424~4 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fappfw%2Fapp-installers.git;a=commitdiff_plain;h=88ad79d3dde0a4bdc1fb4609785046063e9c05cc Fix app2sd library path Use macro instead of hardcoded path. Change-Id: I23248a2f4681044216633a45543abe23f00c9ff6 Signed-off-by: Sangyoon Jang --- 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"; }