Subject: Re: Crossbuilding on Solaris
To: Matt Thomas <matt@3am-software.com>
From: Perry E.Metzger <perry@piermont.com>
List: tech-toolchain
Date: 12/14/2003 12:00:31
We might want to create a file in src/ that describes the setup needed
for building under various OSes.
Perry
Matt Thomas <matt@3am-software.com> writes:
> 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:
>
> 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
> AWK=gawk ; export AWK
>
> Note that /usr/local/lib is only required for libz. Use of libz by the
> host tools should be cleaned up. Having it exist as a host requirement
> is just asking for trouble.
>
> The use of gsub() in several awk scripts forces the dependency on gawk.
--
Perry E. Metzger perry@piermont.com