head 1.6; access; symbols pkgsrc-2026Q1:1.6.0.8 pkgsrc-2026Q1-base:1.6 pkgsrc-2025Q4:1.6.0.6 pkgsrc-2025Q4-base:1.6 pkgsrc-2025Q3:1.6.0.4 pkgsrc-2025Q3-base:1.6 pkgsrc-2025Q2:1.6.0.2 pkgsrc-2025Q2-base:1.6 pkgsrc-2024Q3:1.4.0.18 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.4.0.16 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.4.0.14 pkgsrc-2024Q1-base:1.4 pkgsrc-2023Q4:1.4.0.12 pkgsrc-2023Q4-base:1.4 pkgsrc-2023Q3:1.4.0.10 pkgsrc-2023Q3-base:1.4 pkgsrc-2023Q2:1.4.0.8 pkgsrc-2023Q2-base:1.4 pkgsrc-2023Q1:1.4.0.6 pkgsrc-2023Q1-base:1.4 pkgsrc-2022Q4:1.4.0.4 pkgsrc-2022Q4-base:1.4 pkgsrc-2022Q3:1.4.0.2 pkgsrc-2022Q3-base:1.4 pkgsrc-2022Q2:1.2.0.8 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.6 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.4 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.2 pkgsrc-2021Q3-base:1.2; locks; strict; comment @# @; 1.6 date 2025.06.20.14.20.32; author nia; state Exp; branches; next 1.5; commitid 4iccUbJ8U9nZyDZF; 1.5 date 2024.11.09.18.43.12; author prlw1; state dead; branches; next 1.4; commitid Damr57YJuBDRa0xF; 1.4 date 2022.07.01.22.38.25; author adam; state Exp; branches; next 1.3; commitid nHgR9W1Cp05acfKD; 1.3 date 2022.07.01.16.21.08; author adam; state dead; branches; next 1.2; commitid UIjpfTHumCpA6dKD; 1.2 date 2021.07.29.20.03.28; author fcambus; state Exp; branches; next 1.1; commitid whsUSaXkus1waV2D; 1.1 date 2021.07.14.17.56.52; author adam; state Exp; branches; next ; commitid sBFQtuVj7Ui4XY0D; desc @@ 1.6 log @threadbuildingblocks: Portability fixes. Do not assume that these hardening flags are supported by the target platform. @ text @$NetBSD$ Remove security hardening flags so that the mk/ infrastructure can pass them depending on whether they are supported by the target platform. --- cmake/compilers/GNU.cmake.orig 2025-06-20 14:05:05.891314120 +0000 +++ cmake/compilers/GNU.cmake @@@@ -103,15 +103,6 @@@@ endif () # 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 ) -# -z switch is not supported on MacOS and MinGW -if (NOT APPLE AND NOT MINGW) - set(TBB_LIB_LINK_FLAGS ${TBB_LIB_LINK_FLAGS} -Wl,-z,relro,-z,now,-z,noexecstack) -endif() -if (NOT CMAKE_CXX_FLAGS MATCHES "_FORTIFY_SOURCE") - set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} $<$>:-D_FORTIFY_SOURCE=2> ) -endif () # TBB malloc settings set(TBBMALLOC_LIB_COMPILE_FLAGS -fno-rtti -fno-exceptions) @ 1.5 log @Update threadingbuildingblocks (oneTBB) to 2022.0.0 Three years of improvements. Selfishly my bidisperse colloid Brownian dynamics simulation goes over 10% faster. @ text @d1 1 a1 1 $NetBSD: patch-cmake_compilers_GNU.cmake,v 1.4 2022/07/01 22:38:25 adam Exp $ d3 2 a4 1 Automatically choose dl library. d6 1 a6 1 --- cmake/compilers/GNU.cmake.orig 2021-12-17 13:40:54.000000000 +0000 d8 1 a8 2 @@@@ -41,7 +41,7 @@@@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86 endif() d10 11 a20 4 if (NOT MINGW) - set(TBB_COMMON_LINK_LIBS dl) + set(TBB_COMMON_LINK_LIBS ${CMAKE_DL_LIBS}) endif() d22 2 a23 1 # Ignore -Werror set through add_compile_options() or added to CMAKE_CXX_FLAGS if TBB_STRICT is disabled. @ 1.4 log @threadingbuildingblocks: fix build for GCC @ text @d1 1 a1 1 $NetBSD: patch-cmake_compilers_GNU.cmake,v 1.2 2021/07/29 20:03:28 fcambus Exp $ @ 1.3 log @threadingbuildingblocks: updated to 2021.5.0 oneTBB 2021.5.0 What's New Reworked synchronization mechanism to reduce contention when multiple task_arena’s are used concurrently. Fixed sporadic memory corruption. Enabled Microsoft Visual Studio* 2022 and Python 3.9 support. Preview features Extended task_group interface with a new run_and_wait overload to accept task_handle. Fixed Issues Fixed possible correctness issue in queuing_rw_mutex on non-Intel platforms. Fixed GCC* 11 warnings. Fixed sporadic memory corruption. @ text @d3 1 a3 1 Only link against dl on Linux. d5 1 a5 1 --- cmake/compilers/GNU.cmake.orig 2021-07-29 16:43:31.799016814 +0000 d7 1 a7 2 @@@@ -37,7 +37,9 @@@@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86 set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -mrtm $<$>,$>>:-mwaitpkg>) d10 4 a13 4 -set(TBB_COMMON_LINK_LIBS dl) +if (CMAKE_SYSTEM_NAME MATCHES "Linux") + set(TBB_COMMON_LINK_LIBS dl) +endif() a15 1 if (NOT TBB_STRICT AND COMMAND tbb_remove_compile_flag) @ 1.2 log @threadingbuildingblocks: fix build on Linux, we need to link against dl. Use CMAKE_SYSTEM_NAME to enable linking against dl only on Linux. @ text @d1 1 a1 1 $NetBSD: patch-cmake_compilers_GNU.cmake,v 1.1 2021/07/14 17:56:52 adam Exp $ @ 1.1 log @threadingbuildingblocks: ... and patches @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 Do not link against dl. d5 1 a5 1 --- cmake/compilers/GNU.cmake.orig 2021-07-14 13:06:07.988667592 +0000 d7 1 a7 1 @@@@ -37,7 +37,6 @@@@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86 d12 3 @