[U-Boot] Compiling fw_printenv tool
Detlev Zundel
dzu at denx.de
Fri Jan 17 17:02:54 CET 2014
Hi Alexey,
[...]
> In case someone needs that (before the Makefile changes are accepted),
> I used the
>
> make HOSTCC='arm-none-linuex-gnueabi-gcc -static' env
> command to get it working.
We usually do put options into the HOSTCC variable. Of course one can
argue about that, but the make documentation says about CC:
`CC'
Program for compiling C programs; default `cc'.
and about
`CFLAGS'
Extra flags to give to the C compiler.
So maybe you can do the same in a cleaner way like
make HOSTCC='arm-none-linux-gnueabi-gcc' HOSTCFLAGS='-static' env
Don't get me wrong, I don't want to win a beauty contest, but my
experience tells me that such "oh this works for me" quick and dirty
solutions tend to build up "debt" that can be hard to pay later on ;)
Cheers
Detlev
--
The best way to predict the future is to invent it.
-- Alan Kay
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
More information about the U-Boot
mailing list