From 3ff485b02135ac3b7c025eb29d7af13e80539020 Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Thu, 10 Mar 2022 08:10:43 +0200 Subject: [PATCH] fix out of source build error in gvpr Explanation: It needs $(top_builddir)/lib to include generated expr/y.tab.h in lib Command: (mkdir -p build && cd build && ../configure -q && make) Error: make[3]: Entering directory '/home/costa/oss/graphviz/build/lib/gvpr' CC actions.lo In file included from ../../../lib/expr/expr.h:28, from ../../../lib/gvpr/actions.h:18, from ../../../lib/gvpr/actions.c:16: ../../../lib/expr/exparse.h:4:10: fatal error: expr/y.tab.h: No such file or directory 4 | #include | ^~~~~~~~~~~~~~ compilation terminated. --- lib/gvpr/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gvpr/Makefile.am b/lib/gvpr/Makefile.am index 001b18b43..7e5909e1f 100644 --- a/lib/gvpr/Makefile.am +++ b/lib/gvpr/Makefile.am @@ -18,6 +18,7 @@ endif AM_CPPFLAGS = \ -I$(top_srcdir)/lib \ + -I$(top_builddir)/lib \ -I$(top_srcdir)/lib/common \ -I$(top_builddir)/lib/common \ -I$(top_srcdir)/lib/cgraph \ -- 2.40.0