Re: (Better) support for cross compiled external modules

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Johann 'Myrkraverk' Oskarsson <johann(at)2ndquadrant(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: (Better) support for cross compiled external modules
Date: 2011-05-07 21:10:25
Message-ID: 1304802625.15989.21.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On mån, 2011-05-02 at 14:41 +0000, Johann 'Myrkraverk' Oskarsson wrote:
> Is it possible to add support for cross compiled PGXS modules to the
> build system?
>
> That is, when PG is cross compiled, a <host-triplet>-pg_config is
> also built for use with external modules?
>
> I'm not adverse to submit a patch for this myself, but would like a
> pointer in the general direction for it.

It's not clear to me how this would fit into the build system. The
cross-compiled PostgreSQL build will be installed on the host system,
whereas <host-triplet>-pg_config will remain on the build system. But
we have no way of installing some bits here and some bits there. Then
again, installing a pg_config on the host system that contains
information for building on the original build system is wrong anyway.

One thing you could do is always install <host-triplet>-pg_config when
cross-compiling, and then have your surrounding package mechanism figure
out what to install where. Possibly make pg_config a symlink to the
above.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2011-05-07 21:16:50 Re: Why not install pgstattuple by default?
Previous Message Greg Smith 2011-05-07 21:06:22 Re: Why not install pgstattuple by default?