gnu: llvm-14: Fix building on powerpc-linux.
* gnu/packages/llvm.scm (llvm-14)[arguments]: When building for powerpc-linux adjust the configure-flags to always link shared libraries with -latomic. Change-Id: If020528bf1717595b66e6e0826dbe7a0c1128322
parent
2e11caff39
commit
556aa31050
|
@ -706,6 +706,10 @@ of programming tools as well as libraries with equivalent functionality.")
|
||||||
#$(string-append "-DLLVM_TARGETS_TO_BUILD="
|
#$(string-append "-DLLVM_TARGETS_TO_BUILD="
|
||||||
(system->llvm-target)))
|
(system->llvm-target)))
|
||||||
'())
|
'())
|
||||||
|
;; undefined reference to `__atomic_fetch_add_8' in lib/libLLVMOrcJIT.so.14
|
||||||
|
#$@(if (target-ppc32?)
|
||||||
|
(list "-DCMAKE_SHARED_LINKER_FLAGS=-latomic")
|
||||||
|
`())
|
||||||
"-DCMAKE_SKIP_BUILD_RPATH=FALSE"
|
"-DCMAKE_SKIP_BUILD_RPATH=FALSE"
|
||||||
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE"
|
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE"
|
||||||
"-DBUILD_SHARED_LIBS:BOOL=TRUE"
|
"-DBUILD_SHARED_LIBS:BOOL=TRUE"
|
||||||
|
|
Reference in New Issue