mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
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:
parent
5651e46983
commit
c61e742854
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue