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 @@ 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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue