Re: [PATCH 04/12] Makefile: introduce CROSS_COMPILE variable
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Apr 28, 2014, 23:38 UTC
- Message-ID
- <20140428233806.GS9218@google.com>
- In-Reply-To
- <20140428181506.GA20059@seldon>
Marat Radchenko wrote:
> On Mon, Apr 28, 2014 at 12:37:42PM -0500, Felipe Contreras wrote:
Show 6 quoted lines
>>> +CC = $(CROSS_COMPILE)cc >> >> Nice. > > Actually, not. You still have to override CC because it is > $(CROSS_COMPILE)*g*cc. Any thoughts how to handle this?
One possibility would be something like
ifdef CROSS_COMPILE CC = $(CROSS_COMPILE)gcc else CC = cc endif
Or as Felipe says, you can try to lobby your distro to install the symlink.
Thanks, Jonathan