Subject: efibootmgr fails to cross-compile: it looks for 'pkg-config' instead of 'TARGET-pkg-config'

From: Maxime Devos <[email-masked]>
Date: Wed, 11 May 2022 19:23:41 +0200

X-Debbugs-CC: Denis 'GNUtoo' Carikli <[email-masked]>

Title says it all.

Also see the following excerpt from the build log:

> make -f /tmp/guix-build-efibootmgr-17.drv-0/source/Make.deps deps SOURCES="efibootmgr.c efi.c unparse_path.c" SUBDIR_CFLAGS="-I/tmp/guix-build-efibootmgr-17.drv-0/source/src/include"
> /gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/sh: line 1: pkg-config: command not found

Looks like PKG_CONFIG needs to be added to #:make-flags:
<https://github.com/rhboot/efibootmgr/blob/892cb7444ce6f2cded9c67ff2ab3ef35a4c810c8/Make.rules#L64>.

Maybe AR and CC as well.

Greetings,
Maxime.