bc: disable -flto on powerpc64

Previously bc segfaulted at start, on powerpc64.

PR:		247738
Submitted by:	luporl
Reported by:	pkubaj
MFC after:	1 week
This commit is contained in:
Ed Maste 2020-07-03 20:32:53 +00:00
parent c74a3041f0
commit 957a8d7e74

View File

@ -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