From 957a8d7e748fde5aa24b094eda1afaa12dbe2c4d Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 3 Jul 2020 20:32:53 +0000 Subject: [PATCH] bc: disable -flto on powerpc64 Previously bc segfaulted at start, on powerpc64. PR: 247738 Submitted by: luporl Reported by: pkubaj MFC after: 1 week --- 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 f7718b75e92d..8f877d7b5bbd 100644 --- a/usr.bin/gh-bc/Makefile +++ b/usr.bin/gh-bc/Makefile @@ -50,7 +50,8 @@ CFLAGS+= -DBC_ENABLE_NLS=0 CFLAGS+= -DBC_ENABLE_NLS=1 # prevent floating point incompatibilities caused by -flto on some architectures -.if ${MACHINE_ARCH} != mips && ${MACHINE_ARCH} != mips64 && ${MACHINE_ARCH} != riscv64 +.if ${MACHINE_ARCH} != mips && ${MACHINE_ARCH} != mips64 && \ + ${MACHINE_ARCH} != powerpc64 && ${MACHINE_ARCH} != riscv64 CFLAGS+= -flto .endif