[CRIU] [PATCH 08/10] nmk: build.mk -- Add @hostprogs-y mode

Cyrill Gorcunov gorcunov at gmail.com
Wed Mar 23 04:06:01 PDT 2016


On Wed, Mar 23, 2016 at 01:53:15PM +0300, Dmitry Safonov wrote:
> >>And if I got it right, all that gen-host-, hostprogs-y, $(name)-objs
> >>stuff is for different host-cflags, get-messages and possibe HOSTCC,
> >>that's the reason to declare new rules instead of using existing
> >>target-specific.
> >Yup. For cross compile reason host programs might be build with
> >different compiler and flags (as we have for piegen).
> So, the last thing: I think lib-y in compel will use default $(CC)
> instead of $(HOSTCC) and ccflags.
> But, I guess, that's what you say is left (.so libraries generation).

Yes. lib-y will be used for libcompel.so (and compel.a) which is not
a host program but rather a part of distribution. The compel-cli
won't be shipped at the moment, because hostprog mode is exatly
to use some "host-cc" and other flags to build program that runnable
on the platform where we build criu itself.

That said if we decide that we need to build compel-cli as a
part of criu and ship it together with criu as own executable
program -- than I have to rework all this and build piegen
separately. But even if so let do it on top.


More information about the CRIU mailing list