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]
Other format: [Raw text]

Re: RFC: *_FOR_TARGET and friends


On Sun, Apr 11, 2004 at 10:00:31PM -0400, Aldy Hernandez wrote:
> I usually build my cross builds with a combined tree or with an
> uberbaum.  This time I decided to build binutils separately and
> install it.  This should work.
> 
> However, the $$ escaping doesn't work.  We end up just calling "sed
> -e".  Has no one run into this?  I've tried a variety of make versions
> on my Linux box.
> 
> The problem is here:
> 
>        t='$(program_transform_name)'; echo ar | sed -e $$t ; \
>                                                        ^^^
> 						       ^^^
> 
> This, at least on my make, should be $$$$t.  Same thing goes for
> RANLIB_FOR_TARGET and NM_FOR_TARGET.
> 
> If so, I can supply a patch.

Please explain why you think it should be $$$$?  For most normal
shells, that's not true.  Make will turn $$t into the literal $t, and
fill in '$(program_transform_name)'.

I'd suspect a busted make or a busted shell.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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