On 18/02/2010, at 7:28 AM, Dan wrote:
> On a related note: has anyone used autoconf/automake for cross-compilation?
Yes. For constructing NFS-mounted root filesystems, I suggest you use PREFIX in
combination with DESTDIR -- the former indicates where the software lives
relative to the root filesystem you wish to export, and the latter indicates
where this root filesystem lives on the host's filesystem.
This works fine for executables. For libraries using libtool, the paths in the
'.la' files are wrong -- they do not account for DESTDIR. I guess it sort-of
has to be that way.
By way of an example, I compiled rsync for a ts7250 like so:
PATH=~/armel/arm-2009q3/bin/:$PATH CFLAGS='-march=armv4t' ./configure \
--prefix=/home/peteg/armel/ts7250/ --disable-iconv --host=arm-none-linux-gnueabi
PATH=~/armel/arm-2009q3/bin/:$PATH make -j3
Using Codesourcery's toolchain.
cheers
peter
--
http://peteg.org/
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|