embedspu invocation
Alan Modra
amodra@bigpond.net.au
Mon Jun 18 05:25:00 GMT 2007
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
More information about the Binutils
mailing list