From e0f9caf8f75f2810dca51b4167d86a018de90c78 Mon Sep 17 00:00:00 2001 From: jca Date: Mon, 8 Aug 2022 11:57:58 +0000 Subject: [PATCH] Disable LTO on riscv64, it breaks the build at link time ok thfr@ (maintainer) --- games/arx-libertatis/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/games/arx-libertatis/Makefile b/games/arx-libertatis/Makefile index ce28abc0202..2d0289674a1 100644 --- a/games/arx-libertatis/Makefile +++ b/games/arx-libertatis/Makefile @@ -39,6 +39,12 @@ CONFIGURE_ARGS = -DBUILD_CRASHHANDLER=OFF \ -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}