Subject: Re: Crossbuilding on Solaris
To: Matt Thomas <matt@3am-software.com>
From: James Chacon <jmc@NetBSD.org>
List: tech-toolchain
Date: 12/14/2003 12:48:03
On Sun, Dec 14, 2003 at 08:41:51AM -0800, Matt Thomas wrote:
> Over the past several weeks, I've been committing changes so that
> NetBSD (specifically macppc) can be cross-built on Solaris.  I was
> finally successful on Thursday.
> 
> To build, you must use the /usr/xpg4/bin versions of sh and ln.  To
> build on Solaris, I needed the following in the environment before
> invoking build.sh:

What version of solaris?

> 
>         PATH=/usr/xpg4/bin:/usr/local/bin:/usr/bin:/bin
>                                                   export PATH
>         LD_LIBRARY_PATH=:/usr/local/lib         ; export LD_LIBRARY_PATH
>         BSHELL=/usr/xpg4/bin/sh                 ; export BSHELL
>         HOST_LN=/usr/xpg4/bin/ln                ; export HOST_LN
>         HOST_SH=$BSHELL                         ; export HOST_SH
>         CONFIG_SHELL=$BSHELL                    ; export CONFIG_SHELL
>         HOST_CC="gcc3 -D_FILE_OFFSET_BITS=64"   ; export HOST_CC

What is _FILE_OFFSET_BITS needed for? 

>         AWK=gawk                                ; export AWK

Won't xpg4/bin/awk work there? i.e. doesn't setting PATH do it alone?

James