guix-commits
[Top][All Lists]
Advanced

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

branch staging updated: gnu: qtdeclarative-5: Fix linking on riscv64-lin


From: guix-commits
Subject: branch staging updated: gnu: qtdeclarative-5: Fix linking on riscv64-linux.
Date: Fri, 02 Sep 2022 01:29:52 -0400

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

efraim pushed a commit to branch staging
in repository guix.

The following commit(s) were added to refs/heads/staging by this push:
     new 83be24a13f gnu: qtdeclarative-5: Fix linking on riscv64-linux.
83be24a13f is described below

commit 83be24a13f45909c9ae17eed44fb0591a516fd8d
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Fri Sep 2 08:28:17 2022 +0300

    gnu: qtdeclarative-5: Fix linking on riscv64-linux.
    
    * gnu/packages/qt.scm (qtdeclarative-5)[arguments]: Add phase when
    building for riscv64-linux to adjust the linker flags.
---
 gnu/packages/qt.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 4937addf1e..9359a9f382 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1045,7 +1045,17 @@ xmlpatternsvalidator.")))
                  ;; is provided by qtdeclarative-5.
                  (substitute*
                      "lib/cmake/Qt5QuickCompiler/Qt5QuickCompilerConfig.cmake"
-                   (("\\$\\{_qt5Core_install_prefix\\}") out)))))))))
+                   (("\\$\\{_qt5Core_install_prefix\\}") out)))))
+           ;; TODO: Add phase unconditionally.
+           ,@(if (target-riscv64?)
+               '((add-after 'unpack 'fix-linking-riscv64
+                   (lambda _
+                     (substitute* "src/qml/qml.pro"
+                       (("DEFINES \\+= QT_NO_FOREACH")
+                        (string-append
+                          "isEqual(QT_ARCH, \"riscv64\"): QMAKE_LIBS += 
-latomic\n\n"
+                          "DEFINES += QT_NO_FOREACH"))))))
+               '())))))
     (native-inputs
      (list perl
            pkg-config



reply via email to

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