From 85884cb1de2de0640ec1d7540487195a34538a54 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 3 Jul 2005 18:54:28 +0000 Subject: 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. --- doc/src/sgml/installation.sgml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'doc/src') 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 @@ - + <![%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> -- cgit v1.2.3