Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Feb 2023 18:21:46 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a9e062971923 - main - gh-bc: don't force CFLAGS to -O0 -g
Message-ID:  <202302021821.312ILkNc091808@gitrepo.freebsd.org>

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

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

commit a9e062971923059e8323fac78971a43f8082bd72
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-02-02 18:20:16 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-02-02 18:20:18 +0000

    gh-bc: don't force CFLAGS to -O0 -g
    
    Otherwise, CFLAGS passed in via bsd.sys.mk or the user's environment are
    not respected, and this leads to link errors on riscv64sf.
---
 usr.bin/gh-bc/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/gh-bc/Makefile b/usr.bin/gh-bc/Makefile
index de0c8f36bbc8..a3e3bfd5aab2 100644
--- a/usr.bin/gh-bc/Makefile
+++ b/usr.bin/gh-bc/Makefile
@@ -33,7 +33,7 @@ CATALOGS+=	zh_CN.UTF-8 zh_CN.eucCN zh_CN.GB18030 zh_CN.GB2312 zh_CN.GBK
 NLSNAME=	bc
 NLSSRCDIR=	${BCDIR}/locales
 
-CFLAGS=-g -O0
+#CFLAGS=-g -O0
 CFLAGS+=	-DBC_DEFAULT_BANNER=0
 CFLAGS+=	-DBC_DEFAULT_DIGIT_CLAMP=0
 CFLAGS+=	-DBC_DEFAULT_EXPR_EXIT=1



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