[CRIU] [PATCH 4/9] criu/pie/Makefile.library: clean up

Kir Kolyshkin kir at openvz.org
Fri Mar 24 15:07:41 PDT 2017


1. Remove useless LDFLAGS -- dynamic linker is not used here.

2. Remove $(iquotes) -- there are none defined here.

3. Consolidate filter-out statements into a single one.

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 criu/pie/Makefile.library | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/criu/pie/Makefile.library b/criu/pie/Makefile.library
index 78da25d..f589333 100644
--- a/criu/pie/Makefile.library
+++ b/criu/pie/Makefile.library
@@ -1,7 +1,6 @@
 lib-name		:= pie.lib.a
 
 CFLAGS			+= -fno-stack-protector -DCR_NOGLIBC -fpie
-LDFLAGS			+= -z noexecstack
 
 lib-y			+= util.o
 
@@ -34,10 +33,9 @@ endif
 # applications, which is not the target of the
 # project.
 #
-CFLAGS			:= $(filter-out -pg $(CFLAGS-GCOV),$(CFLAGS)) $(iquotes)
-CFLAGS			:= $(filter-out $(CFLAGS-ASAN),$(CFLAGS))
+CFLAGS		:= $(filter-out -pg $(CFLAGS-GCOV) $(CFLAGS-ASAN),$(CFLAGS))
 
-asflags-y		:= -D__ASSEMBLY__ $(iquotes)
+asflags-y		:= -D__ASSEMBLY__
 ccflags-y		+= $(COMPEL_UAPI_INCLUDES)
 
 ifeq ($(SRCARCH),arm)
-- 
2.9.3



More information about the CRIU mailing list