From 683e3f4fabdb431804d40c9cc7bd59240cc7d537 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 6 Nov 2024 12:46:25 +0200 Subject: 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"))) -- cgit v1.2.3