mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
10
dev-cpp/tbb/files/tbb-2021.7.0-dynamicLink.patch
Normal file
10
dev-cpp/tbb/files/tbb-2021.7.0-dynamicLink.patch
Normal 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()
|
||||
10
dev-cpp/tbb/files/tbb-2021.9.0-dynamicLink.patch
Normal file
10
dev-cpp/tbb/files/tbb-2021.9.0-dynamicLink.patch
Normal 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")
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user