Re: BUG #1311: Can't crosscompile

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bernhard Rosenkraenzer <bero(at)arklinux(dot)org>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1311: Can't crosscompile
Date: 2004-11-29 03:17:23
Message-ID: 200411290317.iAT3HNG13646@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Added to TODO list:

* Allow cross-compiling by generating the zic database on the
target system

---------------------------------------------------------------------------

Tom Lane wrote:
> "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> writes:
> > Quick and dirty [and not really portable] patch:
>
> s/not really/not at all/
>
> AFAICS this would take some fairly significant surgery in configure to
> even have a prayer of working --- there's no reason to assume that the
> host compiler has the same flags as the cross-compiler, for example.
>
> An even bigger issue is that the files generated by zic might not be
> machine-independent --- I haven't looked closely but they certainly
> are binary data. If they are dependent on endianness or sizeof(int)
> or whatever then this approach won't work at all.
>
> In a cross-compile situation it'd probably be better to install the zic
> executable and then run it later on the target system to generate the
> timezone data files. Not sure what sort of makefile hacking might be
> needed to bring this into the realm of possibility.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Neil Conway 2004-11-29 03:33:55 Re: BUG #1329: Bug in IF-ELSEIF-ELSE construct
Previous Message Kris Jurka 2004-11-28 22:14:32 Re: [BUGS] solaris non gcc compiler debug options