gnu: tbb-2020: Use ld.gold to work around segfaults in check phase.

* gnu/packages/tbb.scm (tbb-2020)
[configure-flags]: Use -fuse-ld=gold in CFLAGS.
[native-inputs]: Add ld-gold-wrapper.
This commit is contained in:
Maxim Cournoyer 2021-12-23 00:50:53 -05:00
parent 5651e46983
commit c61e742854
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -89,7 +89,8 @@ (define-public tbb-2020
(arguments
`(#:test-target "test"
#:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
(assoc-ref %outputs "out") "/lib"))
(assoc-ref %outputs "out") "/lib")
"CFLAGS=-fuse-ld=gold")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fail-on-test-errors
@ -121,6 +122,13 @@ (define-public tbb-2020
(copy-recursively "doc" doc)
(copy-recursively "examples" examples)
(copy-recursively "include" include)))))))
(native-inputs
;; XXX: For some reason, since commit "gnu: binutils: Absorb
;; binutils-next", the build of just this version of TBB crashes during
;; tests. Workaround it by linking the binaries with ld.gold.
(list (module-ref (resolve-interface
'(gnu packages commencement))
'ld-gold-wrapper)))
(home-page "https://www.threadingbuildingblocks.org")
(synopsis "C++ library for parallel programming")
(description