Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jun 2023 14:50:12 GMT
From:      =?utf-8?Q?Stefan=20E=C3=9Fer?= <se@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 8eba66320128 - stable/13 - usr.bin/bc: fix build issue of version 6.6.0 on MIPS
Message-ID:  <202306081450.358EoCiW090124@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by se:

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

commit 8eba66320128e4258b2e0b676d1e6b7a96f81532
Author:     Stefan Eßer <se@FreeBSD.org>
AuthorDate: 2023-06-08 14:45:11 +0000
Commit:     Stefan Eßer <se@FreeBSD.org>
CommitDate: 2023-06-08 14:49:49 +0000

    usr.bin/bc: fix build issue of version 6.6.0 on MIPS
    
    The update removed MIPS and POWERPC64 from the list of architectures
    that cannot use LTO to build this software.
    
    Restore the previous exception list and do not use LTO on MIPS,
    MIPS64, POWERPC64, and RISCV64. This is necessary due to differences
    in compiler support for LTO in -CURRENT vs. 13-STABLE.
---
 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 6554d626af89..154155085479 100644
--- a/usr.bin/gh-bc/Makefile
+++ b/usr.bin/gh-bc/Makefile
@@ -71,7 +71,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} != 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?202306081450.358EoCiW090124>