Mail Archives: djgpp-workers/1996/05/05/04:01:01
I've noticed that when "make" calls "make" and passes some quoted strings, it
doesn't work, i.e.:
In the top level Makefile you have:
foo:
cd bar
make "CFLAGS=-g" ../foo
And you invoke "make foo", the second call to "make" simply returns w/o
doing anything. However:
foo:
cd bar
make CFLAGS=-g ../foo
works fine, and just cd'ing into bar and invoking:
make "CFLAGS=-g" ../foo
works fine too. All is well until you need "CFLAGS=-g -O2" or something
with whitespace in it, and then simply removing the quotes is not sufficient.
Is this a bug in "make" or "spawn"? Any ideas? Anybody who has tried to build
C++ or GNAT has surely run into this. I really need to get this fixed
in order to automate the building of GNAT. I'm getting tired of hacking
the Makefile by hand for every new release.
If there is not already a fix in the works, I'll give it a try.
- Raw text -