From: Marat Radchenko Date: Mon, 28 Apr 2014 18:15:07 GMT Subject: Re: [PATCH 04/12] Makefile: introduce CROSS_COMPILE variable Message-ID: <20140428181506.GA20059@seldon> In-Reply-To: <535e91e6c69eb_4565148331047@nysa.notmuch> On Mon, Apr 28, 2014 at 12:37:42PM -0500, Felipe Contreras wrote: > > +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? > > - RC = windres -O coff > > + RC = $(CROSS_COMPILE)windres -O coff > > I don't think this is the best. > > We should probably have this in the Makefile: > > RC = $(CROSS_COMPILE)windres > > And then config.mak.uname should have > > RCFLAGS += -O coff Okay, will do in v2.