This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Problems building a cross compiler...
- From: "Rupert Wood" <me at rupey dot net>
- To: "'Andrew McCall'" <andrew dot mccall at gmail dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 22 Jul 2005 12:04:05 +0100
- Subject: RE: Problems building a cross compiler...
Andrew McCall wrote:
> You can see the layout here:
>
> http://svn.berlios.de/viewcvs/haiku/haiku/trunk/headers/
>
> I have tried using:
>
> --with-sysroot=../../../haiku/headers
> --with-sysroot=../../../haiku/headers/os
> --with-sysroot=../../../haiku/headers/posix
IIRC, the sysroot directory should contain subdirectories 'include' and
'lib'. By the look of it, posix is the one you need as include, although you
might want to merge in the os directory depending on what layout the apps
you want to compile expect. You could do this by making a new 'include'
directory and using cpio or similar to link in all the files in os and
posix. I don't know the convention for your OS.
I may be a few years out of date but it used to be safest to use absolute
paths for configure parameters rather than relative paths, i.e.
--with-sysroot=/home/mccall/haiku/headers
Rup.