Re: BUG #1311: Can't crosscompile

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1311: Can't crosscompile
Дата
Msg-id 13869.1100108031@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #1311: Can't crosscompile  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
Ответы Re: BUG #1311: Can't crosscompile  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-bugs
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: ALTER USER SET log_* not allowed...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: bugreport 7.4.5