From 2812d04d29d7eaef741eb6c5b5fca3b4de95d107 Mon Sep 17 00:00:00 2001 From: Filipe Brandenburger Date: Thu, 26 Jun 2014 01:05:00 +0400 Subject: [PATCH] make: fix "make criu" after arch-specific vdso broke it Building criu with "make criu" on a clean tree was not working, failing on: make[1]: *** No rule to make target `arch/x86/vdso-pie.o'. Stop. make: *** [arch/x86/vdso-pie.o] Error 2 git bisect traced the regression to commit c473461d24fd (vdso: Make it arch specific) which apparently dropped the rule to build $(ARCH_DIR)/vdso-pie.o using the pie rule. Restore the dependency for "make criu" to work again from a clean tree. Tested: $ git clean -fdx $ make criu Fixes: c473461d24fdfcd25542b427829a37fd2f0facb5 Signed-off-by: Filipe Brandenburger Acked-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index f1c878418..a42261470 100644 --- a/Makefile +++ b/Makefile @@ -172,8 +172,11 @@ lib: $(VERSION_HEADER) config built-in.o $(Q) $(MAKE) $(build)=lib all ifeq ($(VDSO),y) +$(ARCH_DIR)/vdso-pie.o: pie + $(Q) $(MAKE) $(build)=pie $(ARCH_DIR)/vdso-pie.o PROGRAM-BUILTINS += $(ARCH_DIR)/vdso-pie.o endif + PROGRAM-BUILTINS += pie/util-fd.o PROGRAM-BUILTINS += pie/util.o PROGRAM-BUILTINS += protobuf/built-in.o