Skip to content

Commit

Permalink
Skip -flto for all MIPS ports
Browse files Browse the repository at this point in the history
There likely should be a macro for the ports that support lto, but I'm
making sure that all the mips things build before decommissioning it and
this is the only thing that's broken...

Sponsored by:		Netflix

(cherry picked from commit d677d4b)
  • Loading branch information
bsdimp authored and stesser committed Mar 4, 2022
1 parent 23fe108 commit 9816cb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr.bin/gh-bc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,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} != mips && ${MACHINE_ARCH} != mips64 && \
${MACHINE_ARCH} != powerpc64 && ${MACHINE_ARCH} != riscv64
.if ${MACHINE_ARCH:Mmips*} == "" && ${MACHINE_ARCH} != powerpc64 && \
${MACHINE_ARCH} != riscv64
CFLAGS+= -flto
.endif

Expand Down

0 comments on commit 9816cb1

Please sign in to comment.