Donn Terry <[EMAIL PROTECTED]>:
> SUBDIR_FLAGS_TO_PASS = $(ORDINARY_FLAGS_TO_PASS) \
> "CC=$$(echo @cc_set_by_configure@ |
> $(PREPEND_DOTDOT_TO_RELATIVE_PATHS) )"
oh, I see. you didn't mention @cc_set_by_configure@ in your
original example. ok. hmm...
this is ugly, but seems to work, and I don't recommend it.
but at the moment I can't think of another solution without
major restructuring.
cc_0=`echo "$(CC)" | sed -e 's/^/cc0:/'`
# or this:
#cc_0=testing
PREPEND=sed -e 's/^/pre:/'
FLAGS= "cc_1=$(cc_0)" \
"CC=\`echo \$$(cc_1) | $(PREPEND)\`"
first:
make $(FLAGS) next
next:
echo "$(CC)"
--
- Re: rfc: new libgcc build mechanism Phil Edwards
- Re: rfc: new libgcc build mechanism Paul D. Smith
- Re: rfc: new libgcc build mechanism Paul D. Smith
- RE: rfc: new libgcc build mechanism Donn Terry
- RE: rfc: new libgcc build mechanism Donn Terry
- RE: rfc: new libgcc build mechanism Donn Terry
- RE: rfc: new libgcc build mechanism Donn Terry
- Re: rfc: new libgcc build mechanism Felix Lee
- Re: rfc: new libgcc build mechanism Felix Lee
- RE: rfc: new libgcc build mechanism Donn Terry
- Re: rfc: new libgcc build mechanism Felix Lee
- Re: rfc: new libgcc build mechanism Felix Lee
- Re: rfc: new libgcc build mechanism Michael Sokolov
- Re: rfc: new libgcc build mechanism Jeffrey A Law
- Re: rfc: new libgcc build mechanism Michael Sokolov
- Re: rfc: new libgcc build mechanism Lars Hecking
- Re: rfc: new libgcc build mechanism Greg A. Woods
- RE: rfc: new libgcc build mechanism Michael Sokolov
- Re: rfc: new libgcc build mechanism Michael Sokolov
