diff options
author | fcambus <fcambus@pkgsrc.org> | 2021-07-29 20:03:28 +0000 |
---|---|---|
committer | fcambus <fcambus@pkgsrc.org> | 2021-07-29 20:03:28 +0000 |
commit | 1f2a600253c53850c389d5f1569c624e8a971c51 (patch) | |
tree | 0d573e14248a3dd24c1cee1fa85ce6ad74c0d575 /parallel/threadingbuildingblocks | |
parent | a1de2b78b7c7653ff9e4c72c81b913fc69514971 (diff) | |
download | pkgsrc-1f2a600253c53850c389d5f1569c624e8a971c51.tar.gz |
threadingbuildingblocks: fix build on Linux, we need to link against dl.
Use CMAKE_SYSTEM_NAME to enable linking against dl only on Linux.
Diffstat (limited to 'parallel/threadingbuildingblocks')
3 files changed, 17 insertions, 11 deletions
diff --git a/parallel/threadingbuildingblocks/distinfo b/parallel/threadingbuildingblocks/distinfo index 9a7556f6647..27296c928ad 100644 --- a/parallel/threadingbuildingblocks/distinfo +++ b/parallel/threadingbuildingblocks/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.7 2021/07/14 17:56:16 adam Exp $ +$NetBSD: distinfo,v 1.8 2021/07/29 20:03:28 fcambus Exp $ SHA1 (oneTBB-2021.3.0.tar.gz) = 4335ea0dc87d1ead91998e90e7de3045704c1fda RMD160 (oneTBB-2021.3.0.tar.gz) = f09caab75e92914edfad977d499beb35b87cef48 SHA512 (oneTBB-2021.3.0.tar.gz) = 969bc8d1dcf50bd12f70633d0319e46308eb1667cdc6f0503b373a35dcb2fe6b2adf59c26bd3c8e2a99a8d2d8b9f64088db5a43e784218b163b3661d12908c0e Size (oneTBB-2021.3.0.tar.gz) = 1651329 bytes -SHA1 (patch-cmake_compilers_Clang.cmake) = 85e2df7336b12839d9a60f374c31835ee86ca7ac -SHA1 (patch-cmake_compilers_GNU.cmake) = 2673e6f9c0a7f8d99399c6f645b9ce30d9f95d06 +SHA1 (patch-cmake_compilers_Clang.cmake) = e61f17d9df4dd06b2c42a6e450fdc3a452b10516 +SHA1 (patch-cmake_compilers_GNU.cmake) = c52042af12a3f90822a70ba6ec0e943deeb24eb7 diff --git a/parallel/threadingbuildingblocks/patches/patch-cmake_compilers_Clang.cmake b/parallel/threadingbuildingblocks/patches/patch-cmake_compilers_Clang.cmake index dd8a04894ff..a4646933b89 100644 --- a/parallel/threadingbuildingblocks/patches/patch-cmake_compilers_Clang.cmake +++ b/parallel/threadingbuildingblocks/patches/patch-cmake_compilers_Clang.cmake @@ -1,14 +1,17 @@ -$NetBSD: patch-cmake_compilers_Clang.cmake,v 1.1 2021/07/14 17:56:52 adam Exp $ +$NetBSD: patch-cmake_compilers_Clang.cmake,v 1.2 2021/07/29 20:03:28 fcambus Exp $ -Do not link against dl. +Only link against dl on Linux. ---- cmake/compilers/Clang.cmake.orig 2021-07-14 13:02:23.067505600 +0000 +--- cmake/compilers/Clang.cmake.orig 2021-07-29 16:43:27.979066736 +0000 +++ cmake/compilers/Clang.cmake -@@ -42,7 +42,6 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86 +@@ -42,7 +42,9 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86 set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -mrtm $<$<NOT:$<VERSION_LESS:${CMAKE_CXX_COMPILER_VERSION},12.0>>:-mwaitpkg>) endif() -set(TBB_COMMON_LINK_LIBS dl) ++if (CMAKE_SYSTEM_NAME MATCHES "Linux") ++ set(TBB_COMMON_LINK_LIBS dl) ++endif() if (ANDROID_PLATFORM) set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} $<$<NOT:$<CONFIG:Debug>>:-D_FORTIFY_SOURCE=2>) diff --git a/parallel/threadingbuildingblocks/patches/patch-cmake_compilers_GNU.cmake b/parallel/threadingbuildingblocks/patches/patch-cmake_compilers_GNU.cmake index b10426c4f02..7952eec183c 100644 --- a/parallel/threadingbuildingblocks/patches/patch-cmake_compilers_GNU.cmake +++ b/parallel/threadingbuildingblocks/patches/patch-cmake_compilers_GNU.cmake @@ -1,14 +1,17 @@ -$NetBSD: patch-cmake_compilers_GNU.cmake,v 1.1 2021/07/14 17:56:52 adam Exp $ +$NetBSD: patch-cmake_compilers_GNU.cmake,v 1.2 2021/07/29 20:03:28 fcambus Exp $ -Do not link against dl. +Only link against dl on Linux. ---- cmake/compilers/GNU.cmake.orig 2021-07-14 13:06:07.988667592 +0000 +--- cmake/compilers/GNU.cmake.orig 2021-07-29 16:43:31.799016814 +0000 +++ cmake/compilers/GNU.cmake -@@ -37,7 +37,6 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86 +@@ -37,7 +37,9 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86 set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -mrtm $<$<AND:$<NOT:$<CXX_COMPILER_ID:Intel>>,$<NOT:$<VERSION_LESS:${CMAKE_CXX_COMPILER_VERSION},11.0>>>:-mwaitpkg>) endif() -set(TBB_COMMON_LINK_LIBS dl) ++if (CMAKE_SYSTEM_NAME MATCHES "Linux") ++ set(TBB_COMMON_LINK_LIBS dl) ++endif() # Ignore -Werror set through add_compile_options() or added to CMAKE_CXX_FLAGS if TBB_STRICT is disabled. if (NOT TBB_STRICT AND COMMAND tbb_remove_compile_flag) |