CMake: Fix build on Solaris the stack_protector feature enabled
Solaris requires the ssp library to be linked when -fstack-protector-strong is passed to the compiler. Fixes: QTBUG-129085 Change-Id: I55396fd9dc102ffd98bef54fc3dfc1aadf18a404 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 73875b8bb5faf9f6ec1064704efaae76e33b0e35) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
ea4c74ccaf
commit
8f89f45f42
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user