[PATCH] Use CFLAGS for compiling bin2hex

Bernhard Walle bwalle at suse.de
Tue Jul 15 07:03:33 EDT 2008


* Simon Horman [2008-07-15 20:28]:
>
> On Tue, Jul 15, 2008 at 10:48:03AM +0200, Bernhard Walle wrote:
> > * Jeremy Kerr [2008-07-15 11:41]:
> > >
> > > 
> > > >  $(BIN_TO_HEX): CC=$(BUILD_CC)
> > > > -$(BIN_TO_HEX): CFLAGS=$(BUILD_CFLAGS)
> > > > +$(BIN_TO_HEX): CFLAGS+=$(BUILD_CFLAGS)
> > > >  $(BIN_TO_HEX): LDFLAGS=
> > > 
> > > Are you sure? CFLAGS will include stuff for $host (eg, -m64 for a 64-bit 
> > > host machine).
> > 
> > No, I'm not sure since I don't use the cross compilation feature, but
> > what's your proposal to use custom cflags like $RPM_OPT_FLAGS?
> 
> I wonder if we can make BUILD_CFLAGS and friends be accepted fron the
> envionment.

   BUILD_CFLAGS=... ./configure

didn't also work. That would be acceptable for me.


Bernhard
-- 
Bernhard Walle, SUSE LINUX Products GmbH, Architecture Development



More information about the kexec mailing list