src/backend/Makefile: Add -I. to make enable vpath builds
authorChristoph Berg <myon@debian.org>
Fri, 7 Jun 2019 16:30:44 +0000 (18:30 +0200)
committerChristoph Berg <myon@debian.org>
Fri, 7 Jun 2019 16:30:44 +0000 (18:30 +0200)
Debian is building the backend module for several PostgreSQL versions in
parallel, using different build directories. This fix enables this "out
of tree" vpath build.

src/backend/Makefile

index 84d8b1ee68b4b14c8656fdf017b798b784d4de03..a5a812305050b43b0a9b325ab28eda865a299111 100644 (file)
@@ -15,6 +15,7 @@ SO_NAME = $(NAME).$(VERSION)$(DLSUFFIX)
 include $(slony_top_builddir)/Makefile.global
 CPPFLAGS:=$(CPPFLAGS_SERVER)
 override CFLAGS += -I$(slony_top_builddir) $(CFLAGS_SL)
+CPPFLAGS += -I.
 
 
 SO_OBJS        = $(NAME).o $(WIN32RES)