Subject: Re: how to use crosscompiler?
To: Hubert Feyrer <hubert@feyrer.de>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-toolchain
Date: 02/03/2004 20:40:09
On Tue, Feb 03, 2004 at 17:16:05 +0100, Hubert Feyrer wrote:

> On 1.6.x, I built a crosscompiler (from 1.6.x sources). How does one use
> it?
> 
> 	miyu% pwd
> 	/home/cvs/src-1.6/tools/obj.vax/tools.NetBSD-1.6ZI-i386/vax--netbsdelf/bin
> 	miyu% ./gcc ~/tmp/h.c -o /tmp/h
> 	/home/feyrer/tmp/h.c:1: stdio.h: No such file or directory

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.

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen