make: Add -fno-strict-aliasing

Since we use some kernel tricks for CMSG_FIRSTHDR
some compilers (in particular gcc version 4.4.5
20110214 (Red Hat 4.4.5-6)) do complain about strict
aliasing.

Thus pass -fno-strict-aliasing to be on the same
coast as kernel is.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2012-08-14 14:22:42 +04:00 committed by Pavel Emelyanov
parent 3ae36e700f
commit 1663d74996
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
include Makefile.inc
CFLAGS += -I./include
CFLAGS += -O0 -ggdb3
CFLAGS += -O0 -ggdb3 -fno-strict-aliasing
LIBS += -lrt -lpthread -lprotobuf-c

View file

@ -24,7 +24,7 @@ DEPS += $(patsubst %.o,%.d,$(POBJS))
DEPS += $(patsubst %.o,%.d,$(ROBJS))
PIELDS := pie.lds.S
PIEFLAGS := -fpie -Wa,--noexecstack
PIEFLAGS := -fpie -Wa,--noexecstack -fno-strict-aliasing
ASMFLAGS := -D__ASSEMBLY__
$(PASM-OBJS): $(PASM-SRC) $(SYS-OBJ)