From a9e062971923059e8323fac78971a43f8082bd72 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 2 Feb 2023 19:20:16 +0100 Subject: [PATCH] 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 de0c8f36bbc..a3e3bfd5aab 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