[3/9] {tests,tools}/Makefile.am: Consider prefixed include directories

Message ID 87fr10pcnd.fsf@seketeli.org
State New
Headers
Series [1/9] tests/mockfedabipkgdiff.in: Fix python module loading |

Commit Message

Dodji Seketeli July 30, 2026, 6:15 p.m. UTC
  Hello,

When the tree is configured to consider dependencies in a prefixed
directory, some tools still ignore those dependencies.  Fixed thus.

	* tests/Makefile.am: Do not forget to consider the prefixed
	include directories.
	* tools/Makefile.am: Likewise.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>

Applied to the master branch.
---
 tests/Makefile.am | 2 +-
 tools/Makefile.am | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/tests/Makefile.am b/tests/Makefile.am
index c3223f1a..5bad12bb 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -234,7 +234,7 @@  runtestabidb3_sh_SOURCES =
 runtestabidb3.sh$(EXEEXT):
 
 
-AM_CPPFLAGS=-I${abs_top_srcdir}/include -I${abs_top_srcdir}/src \
+AM_CPPFLAGS=$(DEPS_CPPFLAGS) -I${abs_top_srcdir}/include -I${abs_top_srcdir}/src \
 -I${abs_top_builddir}/include -I${abs_top_srcdir}/tools -fPIC
 
 clean-local: clean-local-check
diff --git a/tools/Makefile.am b/tools/Makefile.am
index ea2d300c..b1f10db2 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -48,6 +48,6 @@  kmidiffdir = $(bindir)
 kmidiff_LDADD = $(abs_top_builddir)/src/libabigail.la
 kmidiff_LDFLAGS = $(abs_top_builddir)/src/libabigail.la -pthread
 
-AM_CXXFLAGS = \
+AM_CPPFLAGS= $(DEPS_CPPFLAGS) \
 $(VISIBILITY_FLAGS) -I$(abs_top_srcdir)/include \
 -I$(abs_top_srcdir)/tools -fPIC