diff options
author | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2013-08-22 10:40:46 +0530 |
---|---|---|
committer | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2013-08-23 10:47:42 +0530 |
commit | 7eca6a5e56f468a58e1ef1feb8bd8705b6273e9d (patch) | |
tree | 46a2f7bdbe4eb05aa5da78d5d9b678894cbb1c0e /make.rules | |
parent | 1abf624dfb7a84876a82ece6c7547ccb4e1cd755 (diff) | |
download | SLOF-7eca6a5e56f468a58e1ef1feb8bd8705b6273e9d.zip SLOF-7eca6a5e56f468a58e1ef1feb8bd8705b6273e9d.tar.gz SLOF-7eca6a5e56f468a58e1ef1feb8bd8705b6273e9d.tar.bz2 |
Add -fno-strict-aliasing in global CFLAGSqemu-slof-20130823
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 <aviksil@linux.vnet.ibm.com>
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Diffstat (limited to 'make.rules')
-rw-r--r-- | make.rules | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |