pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/parallel/threadingbuildingblocks threadingbuildingbloc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/beadc8d93ae4
branches:  trunk
changeset: 456461:beadc8d93ae4
user:      fcambus <fcambus%pkgsrc.org@localhost>
date:      Thu Jul 29 20:03:28 2021 +0000

description:
threadingbuildingblocks: fix build on Linux, we need to link against dl.

Use CMAKE_SYSTEM_NAME to enable linking against dl only on Linux.

diffstat:

 parallel/threadingbuildingblocks/distinfo                                  |   6 ++--
 parallel/threadingbuildingblocks/patches/patch-cmake_compilers_Clang.cmake |  11 ++++++---
 parallel/threadingbuildingblocks/patches/patch-cmake_compilers_GNU.cmake   |  11 ++++++---
 3 files changed, 17 insertions(+), 11 deletions(-)

diffs (65 lines):

diff -r 8a3fd15d7159 -r beadc8d93ae4 parallel/threadingbuildingblocks/distinfo
--- a/parallel/threadingbuildingblocks/distinfo Thu Jul 29 19:32:35 2021 +0000
+++ b/parallel/threadingbuildingblocks/distinfo Thu Jul 29 20:03:28 2021 +0000
@@ -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 -r 8a3fd15d7159 -r beadc8d93ae4 parallel/threadingbuildingblocks/patches/patch-cmake_compilers_Clang.cmake
--- a/parallel/threadingbuildingblocks/patches/patch-cmake_compilers_Clang.cmake        Thu Jul 29 19:32:35 2021 +0000
+++ b/parallel/threadingbuildingblocks/patches/patch-cmake_compilers_Clang.cmake        Thu Jul 29 20:03:28 2021 +0000
@@ -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 -r 8a3fd15d7159 -r beadc8d93ae4 parallel/threadingbuildingblocks/patches/patch-cmake_compilers_GNU.cmake
--- a/parallel/threadingbuildingblocks/patches/patch-cmake_compilers_GNU.cmake  Thu Jul 29 19:32:35 2021 +0000
+++ b/parallel/threadingbuildingblocks/patches/patch-cmake_compilers_GNU.cmake  Thu Jul 29 20:03:28 2021 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index