mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
make: Move CR_NOGLIBC into CFLAGS_PIE
Lesser duplication, cleaner Makefiles. Reviewed-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Dmitry Safonov <dima@arista.com> Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
parent
3dc4034d00
commit
60d7902042
4 changed files with 3 additions and 4 deletions
2
Makefile
2
Makefile
|
|
@ -85,6 +85,8 @@ ifeq ($(ARCH),s390)
|
|||
DEFINES := -DCONFIG_S390
|
||||
CFLAGS_PIE := -fno-optimize-sibling-calls
|
||||
endif
|
||||
|
||||
CFLAGS_PIE += -DCR_NOGLIBC
|
||||
export CFLAGS_PIE
|
||||
|
||||
LDARCH ?= $(SRCARCH)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
CFLAGS := $(filter-out -pg $(CFLAGS-GCOV) $(CFLAGS-ASAN),$(CFLAGS))
|
||||
CFLAGS += -DCR_NOGLIBC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
|
||||
CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
|
||||
CFLAGS += -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=0
|
||||
|
||||
PLUGIN_ARCH_DIR := compel/arch/$(ARCH)/plugins
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ target := parasite restorer
|
|||
|
||||
CFLAGS := $(filter-out -pg $(CFLAGS-GCOV) $(CFLAGS-ASAN),$(CFLAGS))
|
||||
ccflags-y += $(CFLAGS_PIE)
|
||||
ccflags-y += -DCR_NOGLIBC
|
||||
ccflags-y += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
|
||||
ccflags-y += -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=0
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@
|
|||
|
||||
lib-name := pie.lib.a
|
||||
|
||||
CFLAGS += -DCR_NOGLIBC
|
||||
|
||||
lib-y += util.o
|
||||
|
||||
ifeq ($(VDSO),y)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue