From dd99c1342b62b894dd28ca5ad7d99466b7c258f6 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Fri, 9 Dec 2022 11:19:52 +0100 Subject: [PATCH] build: use LIBEDIT_CFLAGS when building gpioset with interactive mode The Makefile doesn't include the libedit CLFLAGS when building gpioset with interactive mode enabled. This can lead to a build failure if the header is not in the standard location (/usr/include/editline/readline.h). Add LIBEDIT_CFLAGS to AM_CFLAGS. Signed-off-by: Bartosz Golaszewski --- tools/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Makefile.am b/tools/Makefile.am index defe1b0..392f790 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -11,7 +11,7 @@ LDADD = libtools-common.la $(top_builddir)/lib/libgpiod.la if WITH_GPIOSET_INTERACTIVE -AM_CFLAGS += -DGPIOSET_INTERACTIVE +AM_CFLAGS += -DGPIOSET_INTERACTIVE $(LIBEDIT_CFLAGS) LDADD += $(LIBEDIT_LIBS) endif -- 2.30.2