This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: rfc: new libgcc build mechanism
- To: Donn Terry <donnte at microsoft dot com>
- Subject: Re: rfc: new libgcc build mechanism
- From: Felix Lee <flee at teleport dot com>
- Date: Wed, 10 May 2000 18:22:34 -0700
- Cc: "'autoconf at gnu dot org '" <autoconf at gnu dot org>, "'gcc at gcc dot gnu dot org '" <gcc at gcc dot gnu dot org>
Donn Terry <donnte@microsoft.com>:
> 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)"
--