]> xenbits.xensource.com Git - livepatch-build-tools.git/commit
livepatch-tools: add -largp option when required
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 13 Nov 2023 16:09:39 +0000 (17:09 +0100)
committerRoss Lagerwall <ross.lagerwall@citrix.com>
Wed, 15 Nov 2023 13:34:18 +0000 (13:34 +0000)
commitad425f878e330532a62e1a65a444935d7f28a610
treefff8c17aa3889c6a68f32d1c55846edc660b88b1
parent37053cb6fe61f96ac447d3a0d652b627a6dcc352
livepatch-tools: add -largp option when required

crate-diff-object makes use of argp library, and depending on the libc
used by the system (ie: musl or BSD libc) argp is a separate library
and requires the addition of -largp to the build rune.

Introduce some shell logic to detect whether -largp is required for
linking create-diff-object.

I haven't done this as a reusable macro because I'm not sure there's
much point in doing so, the only library we need to test for is argp,
anything else is likely to be a mandatory library flag that doesn't
require such testing (like libelf for example).

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Makefile