guix-commits
[Top][All Lists]
Advanced

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

14/15: gnu: tinyxml: Fix cross-compiling.


From: guix-commits
Subject: 14/15: gnu: tinyxml: Fix cross-compiling.
Date: Wed, 6 Nov 2024 05:52:10 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 683e3f4fabdb431804d40c9cc7bd59240cc7d537
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Nov 6 12:46:25 2024 +0200

    gnu: tinyxml: Fix cross-compiling.
    
    * gnu/packages/xml.scm (tinyxml)[arguments]: Adjust the custom
    'build-shared-library phase to use the correct compiler for the target.
    
    Change-Id: I7db740fca974aa719e06fab4d67cee1a3e014312
---
 gnu/packages/xml.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 575cc016bb..ef084f607b 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -1278,7 +1278,7 @@ UTF-8 and UTF-16 encoding.")
          (delete 'configure)
          (add-after 'build 'build-shared-library
            (lambda _
-             (invoke "g++" "-Wall" "-O2" "-shared" "-fpic"
+             (invoke ,(cxx-for-target) "-Wall" "-O2" "-shared" "-fpic"
                      "tinyxml.cpp" "tinyxmlerror.cpp"
                      "tinyxmlparser.cpp" "tinystr.cpp"
                      "-o" "libtinyxml.so")))



reply via email to

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