git: 8334ce902c23 - main - games/veloren: Prepare port for upcoming build change

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Fri, 06 Jan 2023 19:31:04 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8334ce902c2388420f39373441b1e09e48b0d268

commit 8334ce902c2388420f39373441b1e09e48b0d268
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-01-06 19:14:24 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-01-06 19:30:53 +0000

    games/veloren: Prepare port for upcoming build change
    
    Enabling LTO breaks build
    
    Approved by:    portmgr (blanket)
---
 games/veloren/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/games/veloren/Makefile b/games/veloren/Makefile
index c5deeddf9039..8d9d9bd448a0 100644
--- a/games/veloren/Makefile
+++ b/games/veloren/Makefile
@@ -35,6 +35,9 @@ PLIST_FILES=	bin/${PORTNAME}-server-cli \
 		share/pixmaps/net.veloren.veloren.png
 PORTDATA=	*
 
+# Fixes error "Instruction does not dominate all uses!"
+LTO_UNSAFE=	yes
+
 # https://gitlab.com/veloren/veloren/issues/264
 CARGO_ENV+=		RUSTC_BOOTSTRAP=1
 # XXX https://github.com/rust-lang/cargo/issues/4101