[CRIU] [PATCH 23/24] compel cli: add libs command, use it

Kir Kolyshkin kir at virtuozzo.com
Mon Dec 19 19:15:14 PST 2016


On 12/19/2016 03:05 AM, Pavel Emelyanov wrote:
> On 12/19/2016 01:42 PM, Cyrill Gorcunov wrote:
>> On Mon, Dec 19, 2016 at 01:34:24PM +0300, Pavel Emelyanov wrote:
>>> On 12/17/2016 02:22 PM, Kir Kolyshkin wrote:
>>>> Add "compel libs" that prints the list of libraries needed
>>>> to link the parasite loader.
>>> O_o  What else other than libcompel.(a|so) will we have?
>> No other for now, but since all flags are plural it make
>> sense to define the same way here.
> My question was -- why do we need this action at all?!

To avoid programs that use compel to have some sacred knowledege
(the library name and the path to it), same way as pkg-config does,
but with added bonus of handling the uninstalled case (compel
is in our sources). In other words, to eliminate the lines like this:

COMPEL_LIBRARY	:= ../../../compel/libcompel.a

from the makefiles that use compel.

Now, I just realized I made a slight mistake -- if libcompel.so is 
installed into
the standard libdir path (what are the standard paths? how can we get 
those?),
the output of "compel libs" should be -lcompel. I will send the 
follow-up patch.


More information about the CRIU mailing list