Subject: Re: build.sh tries cross build with host CFLAGS/COPTS?
To: Andrew Brown <atatat@atatdot.net>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: current-users
Date: 01/10/2003 23:45:32
At 11:55 Uhr -0500 10.1.2003, Andrew Brown wrote:
>>-- how do I teach a cross-build not to use CFLAGS and COPTS from
>>/etc/mk.conf?
>
>perhaps something like:
>
>__HOST_MACHINE_ARCH!=uname -p
>.if ${__HOST_MACHINE_ARCH} == ${MACHINE_ARCH}
>CFLAGS=...
>COPTS=...
>.endif

That helped, thanks.

For whatever reason I had the idea that mk.conf is pulled in directly by
make(1); instead it is simply included by 'mk/bsd.own.mk'.

	hauke

--
/~\  The ASCII Ribbon Campaign
\ /    No HTML/RTF in email
 X     No Word docs in email
/ \  Respect for open standards