aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2023-06-08 14:45:11 +0000
committerStefan Eßer <se@FreeBSD.org>2023-06-08 14:49:49 +0000
commit8eba66320128e4258b2e0b676d1e6b7a96f81532 (patch)
tree0e0b77430c429b917d9862a38f06f9016cea47e1
parentcf5731ee5a6fd8545eaf9eea02eab3c5dc1e9c61 (diff)
downloadsrc-8eba66320128e4258b2e0b676d1e6b7a96f81532.tar.gz
src-8eba66320128e4258b2e0b676d1e6b7a96f81532.zip
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.
-rw-r--r--usr.bin/gh-bc/Makefile3
1 files changed, 2 insertions, 1 deletions
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