configure --with-as broken
Jody Goldberg
jodyg@idt.net
Fri Oct 30 18:05:00 GMT 1998
On Fri, Oct 30, 1998 at 11:26:29AM +0000, Alexandre Oliva wrote:
>
> But gcc/configure is not run by a sub-make, is it? And if it is not,
> this is a non-issue, because make only passes the environment down to
> sub-makes, see:
>
> TEST = foo
export TEST
> all: test test2 test3 test4
> test:
> echo $$TEST
> test2:
> $(MAKE) test
> script:
> echo "#! /bin/sh" > $@
> echo 'echo $$TEST' >> $@
> chmod +x script
> cat script
> test3: script
> ./script
> test4:
> $(MAKE) test3
>
> Running this makefile with GNU make 3.76.1 and 3.77 would only print
> blank lines whenever `foo' should be printed according to your
> suggestion. But then, other make programs, or older versions of GNU
> make, may be broken with this respect. Does anyone know of any make
> program for which `make | grep foo' succeeds, i.e., prints at least
> one line?
Adding 'export TEST' will cause the make variable to be exported into the
environment and hence available to sub makes and child processes.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jodyg@idt.net | By definition all answers are replies. Unfortunately,
| not all replies are answers. -- JMS
More information about the Gcc
mailing list