From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Fri, 17 Jan 2014 17:02:54 +0100 Subject: [U-Boot] Compiling fw_printenv tool In-Reply-To: <52D94113.9030300@xtech2.lv> (Alexey Smishlayev's message of "Fri, 17 Jan 2014 16:41:23 +0200") References: <52987228.9040604@xtech2.lv> <52988D88.5000806@xtech2.lv> <52D51EA3.4060702@xtech2.lv> <52D94113.9030300@xtech2.lv> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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