>From 0e3877b9110f2cc81e613eea75605354fff57557 Mon Sep 17 00:00:00 2001 From: Koki Fukuda Date: Wed, 8 Jul 2020 22:55:18 +0900 Subject: [PATCH] Fix out-of-source build error * test/Makefile.in (MODULE_CFLAGS): Add include dir to make out-of-source build success --- test/Makefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/Makefile.in b/test/Makefile.in index f03c194a7c..5dea818df7 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -260,7 +260,9 @@ GMP_OBJ = # Note: emacs-module.h is generated from emacs-module.h.in, hence we # look in ../src, not $(srcdir)/../src. -MODULE_CFLAGS = -I../src -I$(srcdir)/../lib \ +# We also include $(srcdir)/../src because emacs-module.h depends +# on conf_post.h. +MODULE_CFLAGS = -I../src -I$(srcdir)/../src -I$(srcdir)/../lib \ $(FPIC_CFLAGS) $(PROFILING_CFLAGS) \ $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS) -- 2.27.0