dev-cpp/tbb: patch CMakeLists to export symbols for that test

Closes: https://bugs.gentoo.org/835805
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2026-03-27 15:40:22 +01:00
parent 95f0637b3e
commit bb2398cfcf
4 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
--- a/test/CMakeLists.txt 2026-03-27 13:13:21.627057086 +0100
+++ b/test/CMakeLists.txt 2026-03-27 13:17:16.113296894 +0100
@@ -367,6 +367,7 @@
tbb_add_test(SUBDIR tbb NAME test_allocators DEPENDENCIES TBB::tbb)
tbb_add_test(SUBDIR tbb NAME test_arena_priorities DEPENDENCIES TBB::tbb)
tbb_add_test(SUBDIR tbb NAME test_dynamic_link DEPENDENCIES TBB::tbb)
+ set_target_properties(test_dynamic_link PROPERTIES ENABLE_EXPORTS TRUE)
if (WIN32)
tbb_add_test(SUBDIR tbb NAME test_numa_dist DEPENDENCIES TBB::tbb)
endif()

View File

@@ -0,0 +1,10 @@
--- a/test/CMakeLists.txt 2026-03-27 14:52:17.592128499 +0100
+++ b/test/CMakeLists.txt 2026-03-27 14:53:30.563265543 +0100
@@ -375,6 +375,7 @@
tbb_add_test(SUBDIR tbb NAME test_allocators DEPENDENCIES TBB::tbb)
tbb_add_test(SUBDIR tbb NAME test_arena_priorities DEPENDENCIES TBB::tbb)
tbb_add_test(SUBDIR tbb NAME test_dynamic_link DEPENDENCIES TBB::tbb)
+ set_target_properties(test_dynamic_link PROPERTIES ENABLE_EXPORTS TRUE)
if (LINKER_HAS_NO_AS_NEEDED)
# The linker may not detect a dependency on pthread in static variable constructors.
target_link_libraries(test_dynamic_link PRIVATE "-Wl,--no-as-needed")

View File

@@ -25,6 +25,7 @@ BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-2021.7.0-pthread-eagain.patch
"${FILESDIR}"/${PN}-2021.7.0-abort.patch
"${FILESDIR}"/${P}-dynamicLink.patch
)
src_configure() {

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -25,6 +25,7 @@ BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-2021.8.0-gcc-13.patch
"${FILESDIR}"/${PN}-2021.13.0-test-atomics.patch
"${FILESDIR}"/${P}-dynamicLink.patch
)
src_prepare() {