Skip site navigation (1) Skip section navigation (2)

Re: cross compiling postgresql 8.0.1 -- suggestion

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Vladimir Bychkovsky <vladimir(dot)bychkovsky(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-ports(at)postgresql(dot)org
Subject: Re: cross compiling postgresql 8.0.1 -- suggestion
Date: 2005-03-07 18:45:43
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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

In response to

pgsql-ports by date

Next:From: Harvey, Allan ACDate: 2005-03-07 22:08:21
Subject: V8.0.1 under SCO 5.0.7
Previous:From: Tom LaneDate: 2005-03-07 16:13:34
Subject: Re: initdb problem "ShmemIndex entry size is wrong"

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group