Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Nov 2021 23:29:09 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: d677d4be0c23 - main - Skip -flto for all MIPS ports
Message-ID:  <202111162329.1AGNT9QN079753@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=d677d4be0c23a8061710232334e9dc703e591bc4

commit d677d4be0c23a8061710232334e9dc703e591bc4
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-11-16 23:10:25 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-11-16 23:23:02 +0000

    Skip -flto for all MIPS ports
    
    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
---
 usr.bin/gh-bc/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr.bin/gh-bc/Makefile b/usr.bin/gh-bc/Makefile
index e5f68b704d79..213559478b88 100644
--- a/usr.bin/gh-bc/Makefile
+++ b/usr.bin/gh-bc/Makefile
@@ -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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111162329.1AGNT9QN079753>