From 556aa310505276c11dee54822e0f8eb1017e69de Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sat, 9 Dec 2023 18:41:18 +0200 Subject: 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 --- gnu/packages/llvm.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index 08536fc865..a84b8c0030 100644 --- a/gnu/packages/llvm.scm +++ b/gnu/packages/llvm.scm @@ -706,6 +706,10 @@ of programming tools as well as libraries with equivalent functionality.") #$(string-append "-DLLVM_TARGETS_TO_BUILD=" (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_BUILD_WITH_INSTALL_RPATH=FALSE" "-DBUILD_SHARED_LIBS:BOOL=TRUE" -- cgit v1.2.3