git: db8777728ae4 - 2023Q4 - multimedia/gstreamer1-plugins-rust: fix build on armv7

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Tue, 07 Nov 2023 00:25:21 UTC
The branch 2023Q4 has been updated by fuz:

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

commit db8777728ae46e9becbf28f15d119eccb723c9fb
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-11-04 06:24:03 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-11-07 00:24:53 +0000

    multimedia/gstreamer1-plugins-rust: fix build on armv7
    
    Disable LTO to make the build fit into the virtual address space.
    Same fix as for i386.
    
    See also:       3e78ac41f17524591589aa00e50fddd20a2e8014
    Approved by:    portmgr (build fix blanket)
    MFH:            2023Q4
    
    (cherry picked from commit c7b5341dae6449af1d8fc1d7af47a2412ea2b5f6)
---
 multimedia/gstreamer1-plugins-rust/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/multimedia/gstreamer1-plugins-rust/Makefile b/multimedia/gstreamer1-plugins-rust/Makefile
index 89fb3bc13b21..98a619bc028d 100644
--- a/multimedia/gstreamer1-plugins-rust/Makefile
+++ b/multimedia/gstreamer1-plugins-rust/Makefile
@@ -28,7 +28,7 @@ CARGO_BUILD=	no
 CARGO_INSTALL=	no
 CARGO_TEST=	no
 
-.if ${MACHINE_ARCH} == i386
+.if ${MACHINE_ARCH} == i386 || "${MACHINE_ARCH:Marmv?}" != ""
 # https://github.com/rust-lang/rust/issues/85598
 LTO_UNSAFE=	yes
 CARGO_ENV+=	CARGO_PROFILE_RELEASE_LTO=false