mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
make: libcriu -- Use `obj-ext-src-y' target for pie/util-fd.c recompilation
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
f879284bb8
commit
46eff20bd2
14
lib/Makefile
14
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user