]> git.ozlabs.org Git - yaboot.git/blobdiff - Makefile
Make: We must build with -fno-strict-aliasing
[yaboot.git] / Makefile
index 44cec276ae12238a378175bd4be6553b33319125..88fe0dff24b15892fe8b69b35691ab44072177f0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -35,11 +35,13 @@ OBJCOPY             := $(CROSS)objcopy
 # The flags for the yaboot binary.
 #
 YBCFLAGS = -Os -m32 $(CFLAGS) -nostdinc -Wall -isystem `$(CC) -m32 -print-file-name=include` -fsigned-char
-YBCFLAGS += -DVERSION=\"${VERSION}${VERSIONEXTRA}\"    #"
+YBCFLAGS += -DVERSION="\"${VERSION}${VERSIONEXTRA}\""
 YBCFLAGS += -DTEXTADDR=$(TEXTADDR) -DDEBUG=$(DEBUG)
 YBCFLAGS += -DMALLOCADDR=$(MALLOCADDR) -DMALLOCSIZE=$(MALLOCSIZE)
 YBCFLAGS += -DKERNELADDR=$(KERNELADDR)
+YBCFLAGS += -Werror -fdiagnostics-show-option
 YBCFLAGS += -I ./include
+YBCFLAGS += -fno-strict-aliasing
 
 ifeq ($(CONFIG_COLOR_TEXT),y)
 YBCFLAGS += -DCONFIG_COLOR_TEXT
@@ -72,6 +74,7 @@ LLIBS = -lext2fs
 # For compiling userland utils
 #
 UCFLAGS = -Os $(CFLAGS) -Wall -I/usr/include
+UCFLAGS += -Werror -fdiagnostics-show-option
 
 # For compiling build-tools that run on the host.
 #