]> granicus.if.org Git - graphviz/commitdiff
fix out of source build error in gvpr
authorCosta Shulyupin <constantine.shulyupin@gmail.com>
Thu, 10 Mar 2022 06:10:43 +0000 (08:10 +0200)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 12 Mar 2022 20:12:36 +0000 (12:12 -0800)
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 <expr/y.tab.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.

lib/gvpr/Makefile.am

index 001b18b43b7c0c9df04a54e136551db2ed9eb2cb..7e5909e1f15306d2517fdcb91c6f507d6d576c51 100644 (file)
@@ -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 \