aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2005-07-03 18:54:28 +0000
committerPeter Eisentraut <peter_e@gmx.net>2005-07-03 18:54:28 +0000
commit85884cb1de2de0640ec1d7540487195a34538a54 (patch)
tree9e4a32459e7ff7abf5f9f5ca77b4c2272a20f7b3 /doc/src
parentcc9bcbc8a4cbce9d8d5d8cb7b6c4b1425e6cebfa (diff)
downloadpostgresql-85884cb1de2de0640ec1d7540487195a34538a54.tar.gz
postgresql-85884cb1de2de0640ec1d7540487195a34538a54.zip
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.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/installation.sgml19
1 files changed, 18 insertions, 1 deletions
diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml
index 2f240a917b9..7606e03e3f4 100644
--- a/doc/src/sgml/installation.sgml
+++ b/doc/src/sgml/installation.sgml
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.238 2005/06/27 02:04:23 neilc Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.239 2005/07/03 18:54:27 petere Exp $ -->
<chapter id="installation">
<title><![%standalone-include[<productname>PostgreSQL</>]]>
@@ -993,6 +993,23 @@ 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>