This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: embedspu invocation


On Sun, Jun 17, 2007 at 10:50:17PM -0400, Daniel Jacobowitz wrote:
> On Mon, Jun 18, 2007 at 11:52:48AM +0930, Alan Modra wrote:
> > @@ -360,7 +362,23 @@ embedded_spu_file (lang_input_statement_
> >  
> >    /* Use fork() and exec() rather than system() so that we don't
> >       need to worry about quoting args.  */
> > -  cmd[0] = "embedspu";
> > +  prefix = base_name (program_name);
> > +  prefix_len = strlen (prefix);
> > +  if (prefix_len > 2
> > +      && (prefix[prefix_len - 2] == 'l'
> > +	  || prefix[prefix_len - 2] == 'L')
> > +      && (prefix[prefix_len - 1] == 'd'
> > +	  || prefix[prefix_len - 1] == 'D'))
> 
> EXEEXT?

Oh yeah, I guess I should handle that.

>  I'd just work out the prefix at configure time, in the
> Makefile.  Or use make_relative_prefix to find a copy of embedspu in
> $target_alias/bin.

What I'm really looking for is $program_transform_name, not $prefix.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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