Subject: Re: build.sh tries cross build with host CFLAGS/COPTS?
To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
From: Andrew Brown <atatat@atatdot.net>
List: current-users
Date: 01/10/2003 18:44:57
>>>-- 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.
excellent!
>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'.
actually...$MAKECONF is pulled in by bsd.own.mk, so if you want
to...you can set MAKECONF in your shell's environment to pull in an
alternate. or set MAKECONF at the top of a Makefile (to affect that
make process). there are billions of tricks you can do...
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
werdna@squooshy.com * "information is power -- share the wealth."