[make][compiler] add -fno-common

This removes the COMMON section merging logic, which actually uncovered
a few duplicately declared symbols across compilation units.
This commit is contained in:
Travis Geiselbrecht
2016-11-17 14:44:21 -08:00
parent 61d06e19fc
commit 1332d188cb
3 changed files with 3 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ GLOBAL_INCLUDES := $(BUILDDIR) $(addsuffix /include,$(LKINC))
GLOBAL_OPTFLAGS ?= $(ARCH_OPTFLAGS)
GLOBAL_COMPILEFLAGS := -g -finline -include $(CONFIGHEADER)
GLOBAL_COMPILEFLAGS += -W -Wall -Wno-multichar -Wno-unused-parameter -Wno-unused-function -Wno-unused-label -Werror=return-type
GLOBAL_COMPILEFLAGS += -fno-common
GLOBAL_CFLAGS := --std=gnu11 -Werror-implicit-function-declaration -Wstrict-prototypes -Wwrite-strings
#GLOBAL_CFLAGS += -Werror
GLOBAL_CPPFLAGS := --std=c++11 -fno-exceptions -fno-rtti -fno-threadsafe-statics