Re: cross compiling postgresql 8.0.1 -- suggestion - Mailing list pgsql-ports

From Peter Eisentraut
Subject Re: cross compiling postgresql 8.0.1 -- suggestion
Date
Msg-id 200503071945.44117.peter_e@gmx.net
Whole thread Raw
In response to Re: cross compiling postgresql 8.0.1 -- suggestion  (Vladimir Bychkovsky <vladimir.bychkovsky@gmail.com>)
List pgsql-ports
Vladimir Bychkovsky wrote:
> > There is prior discussion of this problem in the archives, but
> > AFAIR we didn't yet find a solution that people liked.
>
> I'd appreciate it if you could send me a pointer to that discussion.
> My search was fruitless.

The usual approach to this situation (to the extent that cross
compilation is usual) is to set up two different compilers, CC for
cross compiling and CC_FOR_BUILD for native compilation.  Then the
makefiles have to be adjusted to use the right one as the case may be.

Earlier, an argument against that arrangement was made on the grounds
that we can't know whether CC and CC_FOR_BUILD are similar enough to
support the same set of flags, but I say that this is a reasonable
assumption to make.

It could be instructive to look at some other packages where some setup
like this was necessary.  A long time ago, Kaffe was one such instance
but I don't know what they do today.

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

pgsql-ports by date:

Previous
From: Tom Lane
Date:
Subject: Re: initdb problem "ShmemIndex entry size is wrong"
Next
From: "Harvey, Allan AC"
Date:
Subject: V8.0.1 under SCO 5.0.7