]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
Skip -flto for all MIPS ports
authorWarner Losh <imp@FreeBSD.org>
Tue, 16 Nov 2021 23:10:25 +0000 (16:10 -0700)
committerStefan Eßer <se@FreeBSD.org>
Fri, 4 Mar 2022 20:16:44 +0000 (21:16 +0100)
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 d677d4be0c23a8061710232334e9dc703e591bc4)

usr.bin/gh-bc/Makefile

index e5f68b704d7994c02e07ce8f3e50e5dc905c1445..213559478b88de8c6b0113dd865bd7a61ee18fcd 100644 (file)
@@ -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