patch to fix client only builds - Mailing list pgsql-hackers

From Merlin Moncure
Subject patch to fix client only builds
Date
Msg-id b42b73150811060744u1de0497v1ff9529bd6a87ba1@mail.gmail.com
Whole thread Raw
Responses Re: patch to fix client only builds  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I'm trying to do client only builds on a bunch of legacy platforms and
noticed that the include path is messed up...if keywords.o is not
already built, it fails to build be because src/backend/parser but not
src/backend is in the include path. (keywords.c includes
parser/gram.h).

The following fixes it.  Probably not the right thing exactly but it works:

Index: Makefile
===================================================================
RCS file: /projects/cvsroot/pgsql/src/backend/parser/Makefile,v
retrieving revision 1.48
diff -r1.48 Makefile
13c13
< override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
---
> override CPPFLAGS := -I$(subdir) -I.. $(CPPFLAGS)

This would be a nice backpatch to 8.3 (and possibly earlier, I didn't check).

merlin


pgsql-hackers by date:

Previous
From: "Tony Fernandez"
Date:
Subject: Upgrading Postgres versions question
Next
From: "Kevin Grittner"
Date:
Subject: Re: RAM-only temporary tables