[CRIU] [PATCH] make: regenerate blobs on linker script (lds) change

Dmitry Safonov dsafonov at virtuozzo.com
Fri Jan 27 06:11:15 PST 2017


Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 criu/pie/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/criu/pie/Makefile b/criu/pie/Makefile
index f16d32595287..74c59b37b0fe 100644
--- a/criu/pie/Makefile
+++ b/criu/pie/Makefile
@@ -42,6 +42,7 @@ endif
 asflags-y	+= -D__ASSEMBLY__
 
 BLOBS		+= $(obj)/restorer-blob.h $(obj)/parasite-blob.h
+LDS		:= $(SRC_DIR)/compel/arch/$(SRCARCH)/scripts/compel-pack.lds.S
 
 .SECONDARY:
 
@@ -49,7 +50,7 @@ target-name = $(patsubst criu/pie/%-blob.h,%,$(1))
 
 $(obj)/restorer.built-in.o: $(compel_std)
 $(obj)/parasite.built-in.o: $(compel_std)
-$(obj)/%.built-in.bin.o: $(obj)/%.built-in.o $(obj)/pie.lib.a
+$(obj)/%.built-in.bin.o: $(obj)/%.built-in.o $(obj)/pie.lib.a $(LDS)
 	$(call msg-gen, $@)
 	$(Q) $(LD) $(shell $(COMPEL_BIN) ldflags) -o $@ $^
 
-- 
2.11.0



More information about the CRIU mailing list