From 5633e7103cde7130141909fef264b47a75bcb2ce Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 15 Nov 2017 17:27:19 +0300 Subject: Fix buildfile to make headers auto-generating to work properly --- libpq/buildfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libpq/buildfile b/libpq/buildfile index 0878e7f..fcaa8d0 100644 --- a/libpq/buildfile +++ b/libpq/buildfile @@ -68,8 +68,11 @@ port_dir = ($tclass == "windows" ? "win32" : \ $tclass == "macos" ? "darwin" : \ $tclass) -c.poptions =+ "-I$out_root" "-I$src_base" \ - "-I$src_base/postgresql/port/$port_dir" \ +# Note that we add "-I$src_root" for the headers auto-generating machinery to +# work properly. +# +c.poptions =+ "-I$out_root" "-I$src_root" "-I$src_base" \ + "-I$src_base/postgresql/port/$port_dir" \ "-I$src_base/postgresql" if ($tclass == "windows") -- cgit v1.1