Subject: Re: how to use crosscompiler?
To: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-toolchain
Date: 02/03/2004 19:01:18
On Tue, 3 Feb 2004, Valeriy E. Ushakov wrote:
> E.g. for hpcsh I do something like:
>
> $ cd $TOOLDIR/shle--netbsdelf
> $ ln -s $DISTDIR/usr/include sys-include
> $ cd lib
> $ ln -s $DISTDIR/usr/lib/* .
> $ ln -f -s $DISTDIR/lib/* .
>
> Then I use $TOOLDIR/bin/shle--netbsdelf-gcc &co.
Well, I prefer Todd's solution with two symlinks:
cd $TOOLDIR/vax--netbsdelf
mv include include.BAK
ln -s $VAXROOT/usr/include .
mv lib lib.BAK
ln -s $VAXROOT/usr/lib .
PATH=`pwd`/bin
export PATH
FWIW, I've put this into htdocs, it'll be at
http://www.NetBSD.org/Documentation/cross/index.html#compiler-usage
within an hour.
- Hubert
--
Hubert Feyrer <hubert@feyrer.de>