diff options
author | Stefan Eßer <se@FreeBSD.org> | 2023-06-08 14:45:11 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2023-06-08 14:49:49 +0000 |
commit | 8eba66320128e4258b2e0b676d1e6b7a96f81532 (patch) | |
tree | 0e0b77430c429b917d9862a38f06f9016cea47e1 | |
parent | cf5731ee5a6fd8545eaf9eea02eab3c5dc1e9c61 (diff) |
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/Makefile | 3 |
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 |