This diff has been in riscv64 snaps since some time already, I don't
know how to fix the build with LTO enabled.  The error message is in the
diff below.

ok?


Index: Makefile
===================================================================
RCS file: /cvs/ports/games/arx-libertatis/Makefile,v
retrieving revision 1.13
diff -u -p -r1.13 Makefile
--- Makefile    28 May 2022 06:19:59 -0000      1.13
+++ Makefile    3 Jul 2022 22:35:55 -0000
@@ -39,6 +39,12 @@ CONFIGURE_ARGS =     -DBUILD_CRASHHANDLER=OF
                        -DCMAKE_INSTALL_PREFIX=${LOCALBASE}/share/arx \
                        -DUNITY_BUILD=OFF
 
+# ld: error: linking module flags 'SmallDataLimit': IDs have conflicting 
values in
+# 'CMakeFiles/common.dir/src/io/log/ConsoleLogger.cpp.o' and 'ld-temp.o'
+.if ${MACHINE_ARCH} == "riscv64"
+CONFIGURE_ARGS +=      -DUSE_LTO=OFF
+.endif
+
 MODCMAKE_LDFLAGS =             -lpthread
 
 PORTHOME =     ${WRKDIR}


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to