diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake index 5e1ea19ea0d..bcfa8124596 100644 --- a/cmake/QtInternalTargets.cmake +++ b/cmake/QtInternalTargets.cmake @@ -333,6 +333,9 @@ endif() if(QT_FEATURE_stack_protector) target_compile_options(PlatformCommonInternal INTERFACE -fstack-protector-strong) + if(CMAKE_SYSTEM_NAME STREQUAL "SunOS") + target_link_libraries(PlatformCommonInternal INTERFACE ssp) + endif() endif() if(QT_FEATURE_stack_clash_protection)