Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[CMAKE] Fix symbol table stripping (#34890)

Egor Duplenskii525b9d697186
diff --git a/cmake/developer_package/compile_flags/sdl.cmake b/cmake/developer_package/compile_flags/sdl.cmake
index b79226b7dcf..8935e8d4664 100644
--- a/cmake/developer_package/compile_flags/sdl.cmake
+++ b/cmake/developer_package/compile_flags/sdl.cmake
@@ -27,7 +27,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR OV_COMPILER_IS_CLANG OR (UNIX AND OV_COMPILER_IS_
endif()
if (NOT ENABLE_SANITIZER)
# Remove all symbol table and relocation information from the executable
- set(OV_C_CXX_FLAGS "${OV_C_CXX_FLAGS} -s")
+ set(OV_LINKER_FLAGS "${OV_LINKER_FLAGS} -s")
endif()
if(NOT MINGW AND NOT APPLE)
set(OV_LINKER_FLAGS "${OV_LINKER_FLAGS} -z noexecstack -z relro -z now")