From: Jan Kiszka <[email protected]> This fixes building against multiarch libpci-dev packages in Debian 11 and Ubuntu 20.04+.
Signed-off-by: Jan Kiszka <[email protected]> --- Makefile.am | 3 ++- configure.ac | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 12dcb19..83da343 100644 --- a/Makefile.am +++ b/Makefile.am @@ -152,7 +152,8 @@ efi_cppflags = \ -I$(GNUEFI_SYS_DIR)/usr/include \ -I$(GNUEFI_INC_DIR) \ -I$(GNUEFI_INC_DIR)/$(ARCH) \ - -I$(GNUEFI_INC_DIR)/$(MACHINE_TYPE_NAME) + -I$(GNUEFI_INC_DIR)/$(MACHINE_TYPE_NAME) \ + $(LIBPCI_CFLAGS) efi_cflags = \ -Wall \ diff --git a/configure.ac b/configure.ac index d7a7451..83fa86b 100644 --- a/configure.ac +++ b/configure.ac @@ -177,6 +177,9 @@ if test "x$PKG_CONFIG" = "xno"; then fi PKG_PROG_PKG_CONFIG() PKG_CHECK_MODULES(LIBCHECK, check) +if test "$ARCH" = "x86_64" || test "$ARCH" = "ia32"; then + PKG_CHECK_MODULES(LIBPCI, libpci) +fi # ------------------------------------------------------------------------------ AC_CONFIG_FILES([ Makefile -- 2.31.1 -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/07cac007-13ba-ddba-d930-9863a7e290d2%40siemens.com.
