On Mon, 14 Apr 2008, Nico Golde wrote:
> > > What is the proposed way of fixing this?
> > 
> > remove the quotes in debian/rules? :)
> 
> I'll do this if someone tells me why this should be wrong.

Because "make" != "sh" ?

Try this in your makefile:
test:
        a() { echo "$$1-$$2"; }; a $(CFLAGS)

$ debian/rules test
a() { echo "$1-$2"; }; a "-Wall -g" -O2
-Wall -g--O2

Make keeps the "" in the variable itself while the shell would remove it
immediately at assignation. The end result is that CFLAGS contains the
quotes... and when you pass multiple arguments between quotes, they are
treated as a single argument.

Cheers,
-- 
Raphaël Hertzog

Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/


Reply via email to