git: gnu/cc80: Correct CFLAGS to fix mkdep warnings
Aaron LI
aly at crater.dragonflybsd.org
Sat Oct 17 06:08:29 PDT 2026
commit 95971b5ef8e976a45c1b0289f4e9ff2b623dca86
Author: Aaron LI <aly at aaronly.me>
Date: Fri Oct 16 09:54:50 2026 +0800
gnu/cc80: Correct CFLAGS to fix mkdep warnings
These programs require to use a C++ compiler to compile their '.c'
sources, so they used hacks to do this, one of which is overriding
'MKDEPCC=${CXX}'. However, the CFLAGS wasn't overridden, so calling
mkdep(1) programs would give the warnings:
```
cc1plus: warning: command-line option '-std=gnu11' is valid for C/ObjC but not for C++
```
Fix it by additionally overriding CC and CFLAGS, similar to the
practice used in 'cc80/cc_tools/libcpp/Makefile'. One bonus is that we
can also remove the rule overriding.
Summary of changes:
gnu/usr.bin/cc80/drivers/c++/Makefile | 12 +++++-------
gnu/usr.bin/cc80/drivers/cc/Makefile | 12 +++++-------
gnu/usr.bin/cc80/drivers/cpp/Makefile | 12 +++++-------
gnu/usr.bin/cc80/drivers/gcov/Makefile | 12 +++++-------
4 files changed, 20 insertions(+), 28 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/95971b5ef8e976a45c1b0289f4e9ff2b623dca86
--
DragonFly BSD source repository
More information about the Commits
mailing list