From 7eca6a5e56f468a58e1ef1feb8bd8705b6273e9d Mon Sep 17 00:00:00 2001 From: Nikunj A Dadhania Date: Thu, 22 Aug 2013 10:40:46 +0530 Subject: Add -fno-strict-aliasing in global CFLAGS This solves the bad checksum issue in udp header. The fill_udp_checksum() function suffers from "strict aliasing" problem as it is doing quite a bit of pointer casting. Signed-off-by: Avik Sil Signed-off-by: Nikunj A Dadhania --- make.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'make.rules') diff --git a/make.rules b/make.rules index 867245d..dae1572 100644 --- a/make.rules +++ b/make.rules @@ -62,7 +62,7 @@ RANLIB ?= $(CROSS)ranlib CPP ?= $(CROSS)cpp WARNFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -CFLAGS ?= -g -O2 -fno-builtin -ffreestanding -nostdinc -msoft-float \ +CFLAGS ?= -g -O2 -fno-builtin -ffreestanding -nostdinc -msoft-float -fno-strict-aliasing \ -mno-altivec -mabi=no-altivec -fno-stack-protector $(WARNFLAGS) export CC AS LD CLEAN OBJCOPY OBJDUMP STRIP AR RANLIB CFLAGS -- cgit v1.1