[asterisk-dev] Cross-compiling for embedded
platforms using openWRT
Kevin P. Fleming
kpfleming at digium.com
Mon Jan 1 09:12:04 MST 2007
Brian Capouch wrote:
> I'm trying to find a kludge to get around this, but it seems to me that
> pieces of configure scripts that actually *execute* code (a la
> pg_config) are going to be problematical whenever one is building in a
> cross-compiling environment.
You are correct, that will be a problem. If you are building pgsql
libraries for a cross-compile environment, you'll need to build the
parts of those libraries that are executed at build time (pg_config as
an example) for the host instead of the target. It is possible, though
unlikely, that the Postgres build system already knows how to do this.
For autoconf-style configure scripts, this is why there is a difference
(a big one) between --host and --target; if the PG build system
supported --host and --target, you could set --host to be your build
host (presumably x86) and --target to be mipsel, and then it would build
pg_config for --host and the actual libraries for --target.
More information about the asterisk-dev
mailing list