This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: rfc: new libgcc build mechanism


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)"
--

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]