diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-02-02 18:20:16 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-02-02 18:20:18 +0000 |
commit | a9e062971923059e8323fac78971a43f8082bd72 (patch) | |
tree | a41bb00f58434155dea2b858be25fdd530ce62a6 | |
parent | 79f7745c098a766d34a4e072cdd1a06e6d0829d5 (diff) | |
download | src-a9e062971923059e8323fac78971a43f8082bd72.tar.gz src-a9e062971923059e8323fac78971a43f8082bd72.zip |
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.
-rw-r--r-- | usr.bin/gh-bc/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
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 |