guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: llvm-14: Fix building on powerpc-linux.


From: guix-commits
Subject: branch master updated: gnu: llvm-14: Fix building on powerpc-linux.
Date: Sun, 10 Dec 2023 01:17:13 -0500

This is an automated email from the git hooks/post-receive script.

efraim pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 556aa31050 gnu: llvm-14: Fix building on powerpc-linux.
556aa31050 is described below

commit 556aa310505276c11dee54822e0f8eb1017e69de
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sat Dec 9 18:41:18 2023 +0200

    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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]