From 58f1a72052903a1cb89539ca919c1db791ed28a9 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 30 Dec 2014 23:35:20 +0100 Subject: [PATCH] Fix header path during VPATH build /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../modules/remotebackend -I../.. -I../.. -I../../.. -pthread -I/usr/include -I../../pdns/ext/rapidjson/include -I../../../pdns/ext/yahttp -I../../../pdns/ext/polarssl/include/ -fPIE -DPIE -D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -Wall -g -O2 -c -o remotebackend.lo ../../../modules/remotebackend/remotebackend.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../modules/remotebackend -I../.. -I../.. -I../../.. -pthread -I/usr/include -I../../pdns/ext/rapidjson/include -I../../../pdns/ext/yahttp -I../../../pdns/ext/polarssl/include/ -DPIE -D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -Wall -g -O2 -c ../../../modules/remotebackend/remotebackend.cc -fPIC -DPIC -o .libs/remotebackend.o In file included from ../../../modules/remotebackend/remotebackend.hh:9:0, from ../../../modules/remotebackend/remotebackend.cc:1: ../../../pdns/json.hh:27:32: fatal error: rapidjson/document.h: No such file or directory #include "rapidjson/document.h" ^ compilation terminated. --- modules/remotebackend/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/remotebackend/Makefile.am b/modules/remotebackend/Makefile.am index 2f2a98529..367178bff 100644 --- a/modules/remotebackend/Makefile.am +++ b/modules/remotebackend/Makefile.am @@ -1,5 +1,5 @@ AM_CPPFLAGS += \ - -I../../pdns/ext/rapidjson/include \ + -I$(top_srcdir)/pdns/ext/rapidjson/include \ $(YAHTTP_CFLAGS) \ $(POLARSSL_CFLAGS) \ $(LIBZMQ_CFLAGS) -- 2.40.0