Re: pgxs: build infrastructure for extensions v2

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: pgxs: build infrastructure for extensions v2
Date: 2004-07-02 14:38:44
Message-ID: 200407021638.44039.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Am Freitag, 25. Juni 2004 16:19 schrieb Fabien COELHO:
> > - Incidentally, the above will fail if pg_config is not installed (yet),
>
> Yes.
>
> > so it can't be used in the contrib/ directories.
> > (The contrib directories are at least cleaned by the top-level makefile,
> > this this is a must-fix failure.)
>
> Well, I think it can be used anyway:
>
> If you cannot compile extensions before postgresql is already installed,

That assumption is wrong. The contrib modules can be built at the same time
as the rest of the tree, before any installation takes place. This is
essential for packaging: When a package is built, the tree is never really
installed.

> > - In Makefile.global: -L$(pkglibdir) is not necessary. There are not
> > libraries to link at build time in there.
>
> It is done only "ifdef PGXS", in which case it seems to me that
> this is really needed, as it is at extension-building time.

There are by definition never any build-time linkable files in $(pkglibdir).

> - maybe more files should be copied? if so which ones?

Actually you might copy less files. You don't need to copy everything under
src/makefiles/. It is enough to copy Makefile.port, since you already know
the platform.

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2004-07-02 14:47:35 Re: psql schema permissions
Previous Message Markus Bertheau 2004-07-02 13:48:12 Re: First attempt: support for "\dg" in psql