Add cf-prot.patch
This commit is contained in:
23
cf-prot.patch
Normal file
23
cf-prot.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
From: Jan Engelhardt <ej@inai.de>
|
||||
Date: 2025-07-17 10:15:40.088500829 +0200
|
||||
References: https://github.com/uxlfoundation/oneTBB/issues/1783
|
||||
|
||||
-fcf-prot: not supported on this target
|
||||
[at least i586, armv7hl, ppc64le, s390x, probably also riscv64]
|
||||
---
|
||||
cmake/compilers/GNU.cmake | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: oneTBB-2022.2.0/cmake/compilers/GNU.cmake
|
||||
===================================================================
|
||||
--- oneTBB-2022.2.0.orig/cmake/compilers/GNU.cmake
|
||||
+++ oneTBB-2022.2.0/cmake/compilers/GNU.cmake
|
||||
@@ -107,7 +107,7 @@ endif ()
|
||||
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 "aarch64" AND NOT EMSCRIPTEN)
|
||||
+if (FALSE)
|
||||
set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} $<$<NOT:$<VERSION_LESS:${CMAKE_CXX_COMPILER_VERSION},8.0>>:-fcf-protection=full>)
|
||||
endif ()
|
||||
set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} $<$<NOT:$<VERSION_LESS:${CMAKE_CXX_COMPILER_VERSION},8.0>>:-fstack-clash-protection>)
|
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 17 08:16:41 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Drop excessive gcc flags: add cf-prot.patch.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 30 19:18:22 UTC 2025 - Alessandro de Oliveira Faria <cabelo@opensuse.org>
|
||||
|
||||
|
1
tbb.spec
1
tbb.spec
@@ -51,6 +51,7 @@ Source99: tbb-rpmlintrc
|
||||
# PATCH-FIX-OPENSUSE cmake-remove-include-path.patch -- openCV include error
|
||||
Patch2: cmake-remove-include-path.patch
|
||||
Patch4: add-cmake-check-for-libatomic-requirement-when-build.patch
|
||||
Patch5: cf-prot.patch
|
||||
BuildRequires: cmake
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
|
Reference in New Issue
Block a user