gnu: tbb: Fix building on riscv64-linux.

* gnu/packages/tbb.scm (tbb)[arguments]: When building for riscv64-linux
always link the test suite with -latomic.
This commit is contained in:
Efraim Flashner 2023-06-07 18:39:34 +03:00
parent 22e7ba67dd
commit aaf8891ed4
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -3,7 +3,7 @@
;;; Copyright © 2016 Nikita <nikita@n0.is> ;;; Copyright © 2016 Nikita <nikita@n0.is>
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net> ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2022 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2022, 2023 Efraim Flashner <efraim@flashner.co.il>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -48,7 +48,11 @@ (define-public tbb
(patches (search-patches "tbb-other-arches.patch")))) (patches (search-patches "tbb-other-arches.patch"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:configure-flags '("-DTBB_STRICT=OFF"))) ;; Don't fail on warnings `(#:configure-flags
'(,@(if (target-riscv64?)
'("-DTBB_TEST_LINK_FLAGS=-latomic")
`())
"-DTBB_STRICT=OFF"))) ;; Don't fail on warnings
(home-page "https://www.threadingbuildingblocks.org") (home-page "https://www.threadingbuildingblocks.org")
(synopsis "C++ library for parallel programming") (synopsis "C++ library for parallel programming")
(description (description