1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

Reverse out because the lack of using pgport in timezone/ is causing

problems:

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

Support cross compilation by compiling "zic" with a native compiler.
This relies on the output of zic being platform independent, but that is
currently the case.
This commit is contained in:
Bruce Momjian
2005-07-06 21:04:14 +00:00
parent a923602855
commit 261ffd03f7
5 changed files with 8 additions and 58 deletions

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.239 2005/07/03 18:54:27 petere Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.240 2005/07/06 21:04:14 momjian Exp $ -->
<chapter id="installation">
<title><![%standalone-include[<productname>PostgreSQL</>]]>
@ -993,23 +993,6 @@ su - postgres
<userinput>./configure CC=/opt/bin/gcc CFLAGS='-O2 -pipe'</>
</screen>
</para>
<para>
If you are cross-compiling<indexterm><primary>cross
compilation</primary></indexterm> (compiling on one architecture
with the intent to run on a different architecture), special care
needs to be taken. First of all, specify the host architecture
(the architecture PostgreSQL will run on) using the option
<option>--host</option>. The variables <envar>CC</>,
<envar>CFLAGS</>, etc. should refer to the build tools for the
host architecture. During the build process, the time-zone
database for PostgreSQL is created and a special tool to do that
is compiled and run during the build process. This tool needs to
be compiled using a native compiler. Specify this compiler using
the variable <envar>CC_FOR_BUILD</envar>. Cross compilation
requires expert knowledge and the support for this process in the
PostgreSQL tree should be considered somewhat experimental.
</para>
</step>
<step>