Re: pgsql: Improve support for building PGXS modules with VPATH.

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Improve support for building PGXS modules with VPATH.
Date: 2013-07-01 19:22:55
Message-ID: 51D1D70F.7090002@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers


On 07/01/2013 02:40 PM, Andrew Dunstan wrote:
>
> On 07/01/2013 01:39 PM, Alvaro Herrera wrote:
>> Andrew Dunstan wrote:
>>> Improve support for building PGXS modules with VPATH.
>>>
>>> A VPATH build will be performed when the module's make file path is not
>>> the current directory or when USE_VPATH is set.
>> So what's the USE_VPATH thing for? I mean, can't you just use VPATH
>> instead?
>>
>
> Well, I was distinguishing between things set by the Makefile and
> things set outisde, but you're probably right. I'll test it and tweak.
>
>

Actually, when I try to get rid of it I get issues with srcdir being
recursively defined.

And in fact, VPATH is defined by Makefile.global when the Postgres build
is a VPATH build, and unrelated to the module's build setup.

So I think it's probably best to leave this as it is unless you can
suggest an easy fix.

cheers

andrew

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2013-07-01 19:46:12 Re: pgsql: Add a convenience routine makeFuncCall to reduce duplication.
Previous Message Bruce Momjian 2013-07-01 18:53:37 pgsql: pg_dump docs: use escaped double-quotes, for Windows