Forwarded: not-needed
CMake hardcodes -fstack-protector-strong for GNU and Clang compilers, which overrides
dpkg-buildflags and causes build failures on alpha.
Gbp-Pq: Name alpha-no-fstack-protector.patch
-Wformat -Wformat-security -Werror=format-security
$<$<PLATFORM_ID:Windows>:-D_CRT_SECURE_NO_WARNINGS>
$<$<NOT:$<PLATFORM_ID:Windows>>:-fPIC>
- $<$<NOT:$<PLATFORM_ID:Emscripten>>:-fstack-protector-strong>)
+ )
+if (NOT CMAKE_SYSTEM_PROCESSOR MATCHES "alpha")
+ set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} $<$<NOT:$<PLATFORM_ID:Emscripten>>:-fstack-protector-strong>)
+endif()
if (NOT APPLE AND NOT ANDROID_PLATFORM AND CMAKE_SYSTEM_PROCESSOR MATCHES "(AMD64|amd64|i.86|x86)" AND NOT WIN32)
set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} -fstack-clash-protection)
# Gnu flags to prevent compiler from optimizing out security checks
set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv)
set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -Wformat -Wformat-security -Werror=format-security
- -fstack-protector-strong )
+ )
+if (NOT CMAKE_SYSTEM_PROCESSOR MATCHES "alpha")
+ set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -fstack-protector-strong)
+endif()
if (CMAKE_SYSTEM_PROCESSOR MATCHES "(AMD64|amd64|i.86|x86)" AND NOT EMSCRIPTEN)
set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} $<$<NOT:$<VERSION_LESS:${CMAKE_CXX_COMPILER_VERSION},8.0>>:-fcf-protection=full>)
endif ()