mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
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:
parent
3ae36e700f
commit
1663d74996
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
|
@ -1,7 +1,7 @@
|
|||
include Makefile.inc
|
||||
|
||||
CFLAGS += -I./include
|
||||
CFLAGS += -O0 -ggdb3
|
||||
CFLAGS += -O0 -ggdb3 -fno-strict-aliasing
|
||||
|
||||
LIBS += -lrt -lpthread -lprotobuf-c
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue