git: 8eba66320128 - stable/13 - usr.bin/bc: fix build issue of version 6.6.0 on MIPS

From: Stefan Eßer <se_at_FreeBSD.org>
Date: Thu, 08 Jun 2023 14:50:12 UTC
The branch stable/13 has been updated by se:

URL: https://cgit.FreeBSD.org/src/commit/?id=8eba66320128e4258b2e0b676d1e6b7a96f81532

commit 8eba66320128e4258b2e0b676d1e6b7a96f81532
Author:     Stefan Eßer <se@FreeBSD.org>
AuthorDate: 2023-06-08 14:45:11 +0000
Commit:     Stefan Eßer <se@FreeBSD.org>
CommitDate: 2023-06-08 14:49:49 +0000

    usr.bin/bc: fix build issue of version 6.6.0 on MIPS
    
    The update removed MIPS and POWERPC64 from the list of architectures
    that cannot use LTO to build this software.
    
    Restore the previous exception list and do not use LTO on MIPS,
    MIPS64, POWERPC64, and RISCV64. This is necessary due to differences
    in compiler support for LTO in -CURRENT vs. 13-STABLE.
---
 usr.bin/gh-bc/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/usr.bin/gh-bc/Makefile b/usr.bin/gh-bc/Makefile
index 6554d626af89..154155085479 100644
--- a/usr.bin/gh-bc/Makefile
+++ b/usr.bin/gh-bc/Makefile
@@ -71,7 +71,8 @@ MAN_SRC_BC=	bc/A.1
 MAN_SRC_DC=	dc/A.1
 
 # prevent floating point incompatibilities caused by -flto on some architectures
-.if ${MACHINE_ARCH} != riscv64
+.if ${MACHINE_ARCH:Mmips*} == "" && ${MACHINE_ARCH} != powerpc64 && \
+	${MACHINE_ARCH} != riscv64
 CFLAGS+=	-flto
 .endif