]> granicus.if.org Git - pdns/commitdiff
Fix header path during VPATH build
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 30 Dec 2014 22:35:20 +0000 (23:35 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 1 Jan 2015 14:24:08 +0000 (15:24 +0100)
/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

index 2f2a985297f82b18241cf95ebcabd756b059b85d..367178bff2ceaff5241f8de2758fb90ba7407bf9 100644 (file)
@@ -1,5 +1,5 @@
 AM_CPPFLAGS += \
-       -I../../pdns/ext/rapidjson/include \
+       -I$(top_srcdir)/pdns/ext/rapidjson/include \
        $(YAHTTP_CFLAGS) \
        $(POLARSSL_CFLAGS) \
        $(LIBZMQ_CFLAGS)