rhboot / efivar

Tools and libraries to work with EFI variables
GNU Lesser General Public License v2.1
241 stars 104 forks source link

Allow overriding PKG_CONFIG #236

Closed tedbrandston closed 1 year ago

tedbrandston commented 2 years ago

In my ChromiumOS build calling pkg-config without an appropriate cross-compilation prefix is considered an error. The current method of detecting PKG_CONFIG in efivar always calls pkg-config, even if PKG_CONFIG has already been set in the environment.

Allow overriding PKG_CONFIG, rather than always checking for the cross-compiled version. This is more in-line with how the other tools are chosen.

Signed-off-by: Ted Brandston tbrandston@google.com