Skip to content

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

[PyOV] Fix compatibility with MacOS 15.4 (#30575)

Anastasia Kuporosova4e16a985b0cc
diff --git a/src/bindings/python/wheel/CMakeLists.txt b/src/bindings/python/wheel/CMakeLists.txt
index ada33e88113..e6b9d795397 100644
--- a/src/bindings/python/wheel/CMakeLists.txt
+++ b/src/bindings/python/wheel/CMakeLists.txt
@@ -62,6 +62,9 @@ if(APPLE)
string(REGEX MATCH "1[0-9]_[0-9]+" _macos_target_version ${PLATFORM_TAG})
endif()
+ # try to make in compatile with macos 15.4+
+ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-headerpad_max_install_names")
+
# common platform tag looks like macosx_<macos major>_<macos minor>_<arch>
if(_arch AND _macos_target_version)
set(PLATFORM_TAG "macosx_${_macos_target_version}_${_arch}")