Re: Fix for cross compilation

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Fix for cross compilation
Date: 2005-05-31 13:18:12
Message-ID: 200505311518.12520.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Am Montag, 30. Mai 2005 20:11 schrieb Tom Lane:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> > The problem is that the program zic in src/timezone/ is built and run
> > during the build process, which doesn't work if it's compiled by a
> > cross-compiler.
>
> Why don't we instead arrange to run it during install?

It does currently run during the install. How does that help?

> I'm not real thrilled with the notion of trying to use a zic built by a
> different compiler; I think that will lead to all sorts of problems,
> considering that the files it's meant to write are binary and
> at least potentially architecture-specific. Also there's the problem
> that it is reading a pg_config.h that is definitely platform-specific.

Well, that is true. Bummer.

> BTW, the truth of the matter is that we've never supported
> cross-compilation; see all the AC_TRY_RUN operations in configure.

They all have (or should have) fall-back values for cross-compilation. Else,
those who complain about zic would have never gotten there.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2005-05-31 13:23:20 Re: Oracle Style packages on postgres
Previous Message Jonah H. Harris 2005-05-31 13:12:26 Re: Oracle Style packages on postgres