Re: how to change $(CC) for just some targets

2010-06-07 Thread BVK Chaitanya
One way we are trying to achieve this in GRUB 2 is, by using nested projects feature. In grub 2 some parts needs to be compiled using HOST_CC and others using TARGET_CC. All sources that need TARGET_CC are moved into a sub-directory and we a separate configure.ac file for them. Top-level directo

Re: how to change $(CC) for just some targets

2010-06-07 Thread Ralf Wildenhues
* Brian J. Murrell wrote on Mon, Jun 07, 2010 at 09:51:25PM CEST: > > I was just surprised that I could set CFLAGS and LDFLAGS and additional > linker arguments on a per target basis but not specify a compiler and/or > linker on a per target basis. > > Would this be something difficult to add or

Re: how to change $(CC) for just some targets

2010-06-07 Thread Brian J. Murrell
On Sun, 2010-06-06 at 12:51 +0200, Ralf Wildenhues wrote: > Hello Brian, Hi Ralf, > What do you need $(LD) or $(foo_LD) for? It is not referenced by any > automake-generated rules really. LD is the rough representation of whatever should be used for the link phase. I suppose in most (gnu) cas