From 46eff20bd27a80657a8f52bdc4eaa96509e8312c Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Mon, 2 Sep 2013 16:18:57 +0400 Subject: [PATCH] make: libcriu -- Use `obj-ext-src-y' target for pie/util-fd.c recompilation Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- lib/Makefile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index 0fa056020..3156eb13c 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,21 +1,13 @@ lib-so += libcriu obj-y += criu.o +obj-ext-src-y += pie/util-fd.o -cflags-y += -fPIC -Wa,--noexecstack -fno-stack-protector -cflags-so += -rdynamic includes += -iquote $(obj)/../arch/$(ARCH)/include -iquote $(obj)/../include -iquote $(obj)/.. +cflags-y += $(includes) -fPIC -Wa,--noexecstack -fno-stack-protector +cflags-so += -rdynamic .SECONDARY: -# -# We need util-fd.c to be re-compiled with -# own flags, but our build engine can't -# do such tricks yet, so write a rule -# manually for a while. -$(obj)/util-fd.o: $(obj)/../pie/util-fd.c - $(E) " CC " $@ - $(Q) $(CC) -c $(cflags-y) $(CFLAGS) $(includes) $< -o $@ - ifneq ($(MAKECMDGOALS),clean) incdeps := y endif