[IE][VPU]: WA for Segmentation fault on dlclose() issue (#4707)

* Prevent myriadPlugin to be unloaded at runtime.
This commit is contained in:
Andrew Bakalin 2021-03-10 12:04:11 +03:00 committed by GitHub
parent 3330ef3da3
commit 5df30a6d27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,11 @@ target_link_libraries(${TARGET_NAME}
PRIVATE
mvnc inference_engine inference_engine_legacy vpu_graph_transformer)
# MyriadPlugin is not safe to unload it at runtime
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set_target_properties(${TARGET_NAME} PROPERTIES LINK_OPTIONS "-Wl,-z,nodelete")
endif()
ie_add_api_validator_post_build_step(TARGET ${TARGET_NAME})
# LTO