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
This commit is contained in:
Efraim Flashner 2024-11-06 12:46:25 +02:00
parent ff799a1a95
commit 683e3f4fab
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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")))