tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Escaping quotes in CFLAGS



On Tue, Dec 14, 2010 at 12:47:54AM +0100, Joerg Sonnenberger wrote:
> > 
> > As PREFIX doesn't contain spaces
> > 
> >   CFLAGS+=        -DLUA_ROOT=${PREFIX}/
> > 
> > whould be enough. For other variables consider using :Q variable modifier.
> 
> No. That doesn't create a macro that is a C string.

Sometimes it is easier to get the quoting done by cpp itself.
(use an extra #define STR(x) #x)

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index