tools: mkeficapsule: use pkg-config to get -luuid and -lgnutls
authorHeiko Thiery <heiko.thiery@gmail.com>
Wed, 20 Jul 2022 10:31:33 +0000 (12:31 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 4 Aug 2022 19:32:20 +0000 (15:32 -0400)
commit31a7688cbe0ed5edf4108a1f7ef4653659610d4b
tree543cb4c124a9d852a3053c1d16b7770e99a5eb21
parentb661c1bc92f9ac096ffaf0aec7e60a5413ce8b34
tools: mkeficapsule: use pkg-config to get -luuid and -lgnutls

Instead of hardcoding -luuid -lgnutls as the flags needed to build
mkeficapsule, use pkg-config when available.

We gracefully fallback on the previous behavior of hardcoding -luuid
-lgnutls if pkg-config is not available or fails with an error.

Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
tools/Makefile