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