tbb/use-FORTIFY_SOURCE-from-distribution.patch
Adam Majer e2e77a39d0 Accepting request 1101791 from home:marxin:branches:devel:libraries:c_c++
* Add use-FORTIFY_SOURCE-from-distribution.patch and use FS settings from distribution
(we use either =2 or =3).

  * Since C++17, parallel algorithms and Flow Graph nodes are allowed to accept
    pointers to the member functions and member objects as the user-provided
    callables.
  * Added missed member functions, such as assignment operators and swap function,
    to the concurrent_queue and concurrent_bounded_queue containers.

OBS-URL: https://build.opensuse.org/request/show/1101791
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tbb?expand=0&rev=87
2023-08-02 08:02:50 +00:00

13 lines
616 B
Diff

diff --git a/cmake/compilers/GNU.cmake b/cmake/compilers/GNU.cmake
index b60172c..738d185 100644
--- a/cmake/compilers/GNU.cmake
+++ b/cmake/compilers/GNU.cmake
@@ -74,7 +74,6 @@ set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -fno-strict-overflow -f
set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -Wformat -Wformat-security -Werror=format-security
-fstack-protector-strong )
set(TBB_LIB_LINK_FLAGS ${TBB_LIB_LINK_FLAGS} -Wl,-z,relro,-z,now,-z,noexecstack)
-set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} $<$<NOT:$<CONFIG:Debug>>:-D_FORTIFY_SOURCE=2> )
# TBB malloc settings