[Nagiosplug-help] Cross compile nagios?
strombrg at dcs.nac.uci.edu
Thu Feb 10 10:28:01 CET 2005
To build a gcc cross compiler, IIRC, you need ./configure --
target=whatever. It's been a while though.
FWIW, I believe autoconf has some built-in cross compilation checking,
though it's not clear to me at this time whether that is built into
configure scripts by default, or only by request of configure.in.
If you want to see what libraries you're going to require, a relatively
easy way might be to just build native versions, and then use ldd, odump
-Dl, or strings on the resulting native binaries to see what libraries
you're going to need (assuming the host you're cross compiling from has
an at least semi-similar library layout to what you're cross compiling
On Thu, 2005-02-10 at 09:58 +0100, Andreas Ericsson wrote:
> vanny wrote:
> > Hi, everyone.
> > I want to cross compile Nagios on x86, and then upload its binary to run on
> > PowerPC. Is it possible to do so?
> Not without a cross-compiler. You'll probably need to compile your own
> gcc (make sure it doesn't install over your current one!) and read the
> docs carefully.
> For nagios, run CC="/usr/local/bin/cross-compiling-gcc" ./configure
> to make sure it uses that one instead (you might have to disable a few
> checks in ./configure as well, particularly the one checking if gcc can
> produce valid programs). You'll also need to cross-compile all libraries
> used by nagios, or compile nagios statically.
> > (I have a small PowerPc-modeled machine without hard disk, but Compact Flash
> > . That's why I can't compile Nagios directly on it.)
> > thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the Help