If the process unloads the appcore-common library, the process will be
crashed by exit handler. While exiting the process, glibc calls the exit handler.
In that case, the process has crashed if the appcore-common library is unloaded.
Change-Id: I373af823d82bad4843bf66df749f56e2b24474ac
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../)
-TARGET_LINK_LIBRARIES(${TARGET_APP_CORE_CPP} PUBLIC "-ldl -L${LIB_INSTALL_DIR}/hal")
+TARGET_LINK_LIBRARIES(${TARGET_APP_CORE_CPP} PUBLIC "-ldl -L${LIB_INSTALL_DIR}/hal -Wl,-z,nodelete")
SET_TARGET_PROPERTIES(${TARGET_APP_CORE_CPP} PROPERTIES SOVERSION ${MAJORVER})
SET_TARGET_PROPERTIES(${TARGET_APP_CORE_CPP} PROPERTIES VERSION ${FULLVER})