me
/
guix
Archived
1
0
Fork 0

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.
master
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
1 changed files with 9 additions and 1 deletions

View File

@ -89,7 +89,8 @@ tasks, synchronization primitives, atomic operations, and more.")
(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 @@ tasks, synchronization primitives, atomic operations, and more.")
(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