From 8eba66320128e4258b2e0b676d1e6b7a96f81532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Thu, 8 Jun 2023 16:45:11 +0200 Subject: 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 -- cgit v1.2.3