summaryrefslogtreecommitdiffstats
path: root/mk/cc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/cc.mk')
-rw-r--r--mk/cc.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/cc.mk b/mk/cc.mk
index fcf05351..ffbf93a6 100644
--- a/mk/cc.mk
+++ b/mk/cc.mk
@@ -14,7 +14,8 @@ _CCFLAGS= -pedantic -Wall -Wunused -Wimplicit -Wshadow -Wformat=2 \
-Wmissing-declarations -Wno-missing-prototypes -Wwrite-strings \
-Wbad-function-cast -Wnested-externs -Wcomment -Winline \
-Wchar-subscripts -Wcast-align -Wno-format-nonliteral \
- -Wdeclaration-after-statement -Wsequence-point -Wextra
+ -Wdeclaration-after-statement -Wsequence-point -Wextra \
+ -fno-common
_CC_FLAGS_SH= if ! test -d .git; then echo ""; else for f in ${_CCFLAGS}; do \
if ${CC} $$f -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
then printf "%s" "$$f "; fi \