Commit b31bb242 authored by Alessandro Rubini's avatar Alessandro Rubini

Makefile: add -fno-common

I don't want to declare globals in header files by error (see previous
commit).  So I'd better use this flag to request "multiple definition"
errors at build time.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent c5c6b8b6
......@@ -32,7 +32,7 @@ all: $(TARGET).o
# CFLAGS to use. Both this Makefile (later) and app-makefile may grow CFLAGS
CFLAGS = $(USER_CFLAGS)
CFLAGS += -Wall -O2 -ggdb -Iinclude
CFLAGS += -Wall -O2 -ggdb -Iinclude -fno-common
# to avoid ifdef as much as possible, I use the kernel trick for OBJ variables
OBJ-y := fsm.o diag.o
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment