From nobody Thu Feb 02 18:21:46 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P76Z31Tmhz3kRRl; Thu, 2 Feb 2023 18:21:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P76Z311jzz451V; Thu, 2 Feb 2023 18:21:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675362107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PwrDEsLQ88Ye1bF3xA91ts+b7UU7EUIPjNHRPgzwAGo=; b=BJTbHbQlu/VvFEL19uZtub5+B7agM1pSTAai9z9kCHyLr4jwW1hQe81KAUstrLtTSX2d2Q 2rOz6HPMHeVFa7uU9DPKJbbHln8CETSrobrP5SThl5w71PsQri0fb2MkSZithi9tbhyuTA AdUq9Pa45Dgz8zk/15+QXB5HwFVNvZGS/Zu/4qu8dyD1Idzpc9Kxo5HFjTDsBT670Eax+G Na2R0lb3xO004Wc1/cyf8nkQDHIPcfSeA2SeOMSzvNu5pNFcxjdXlXKOXY5IWFmt4w4zqh yrb9T1EltXRp/mtCjs7wtkG+yFr8DsQFRMYLM9W2Zn5TFm5rhKXrjfP/s22OPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675362107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PwrDEsLQ88Ye1bF3xA91ts+b7UU7EUIPjNHRPgzwAGo=; b=RTwBpUKgb+uSWIWeWqJSVKnEp+mEe+ntD1E1RKOQH5KeOy6qBmR9Rj3eGAwVyCiR5ZdIgB +kbVwVITWZAaBwTkWa8ACiHxUZG7gsHsgMXiCcv1HgAdcL/cOghhr4Bk0fTWxGfZQy99r9 BSFNtzPD3iAMrlP0G8jJnDilZFcHaJ1JMOC0KGR3/m2j7BXs42shQa75zO8qwSfxmT/rRV CDXnvEutu8ZiliRtjBcu6dScI6rATJDDxP/f7DFOJzIgpCzgfUHVx4b6WxKit0Iscauvzi ZB84hha+EDlahPl/HlWAMFaDU7JqEWLG+fM/kaNwC0TZNQRbh9/GgKc8GkpbRA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675362107; a=rsa-sha256; cv=none; b=hFl1o4rtXUQl0N+DdirYRHv20StZ1cC1+504ws9Zz88Rd1GjU/CV01GhiW/1w7qag3xWpl Ieml0qAeUdHmuI/wyCxcB0WGpEB/F4QXf6bdj7tr1e2b6LA56nHO8SKeLSTrq16QZyd62f bv2Y0WL15rQex8TuSa/V6/huNDpDzp/H5kxR4kcSmT0drkyOS7QBh9t5cHmAg0Rc8gG4dj 8OuKuf02FkJAs0keC2amH9nB55Cd15h0TygxHxrliiIrZ7q8PjN4atbmE66fMkVEGiUVlS TXgksAG1Qzzxsxot/JMDBS1Rgi8SKQtegoAl3DpzH+ieJgpX0vA3fsP7Os7QnA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P76Z304Ywz13xP; Thu, 2 Feb 2023 18:21:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 312ILkmL091809; Thu, 2 Feb 2023 18:21:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 312ILkNc091808; Thu, 2 Feb 2023 18:21:46 GMT (envelope-from git) Date: Thu, 2 Feb 2023 18:21:46 GMT Message-Id: <202302021821.312ILkNc091808@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: a9e062971923 - main - gh-bc: don't force CFLAGS to -O0 -g List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a9e062971923059e8323fac78971a43f8082bd72 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=a9e062971923059e8323fac78971a43f8082bd72 commit a9e062971923059e8323fac78971a43f8082bd72 Author: Dimitry Andric AuthorDate: 2023-02-02 18:20:16 +0000 Commit: Dimitry Andric 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