From: Pedro Alves <palves@redhat.com>
To: Mircea Gherzan <mircea.gherzan@intel.com>
Cc: yao@codesourcery.com, tromey@redhat.com, gdb-patches@sourceware.org
Subject: Re: [PATCH] gdbserver: fix the standalone build
Date: Thu, 27 Jun 2013 17:42:00 -0000 [thread overview]
Message-ID: <51CC7888.1060301@redhat.com> (raw)
In-Reply-To: <51CC68B7.9060007@intel.com>
On 06/27/2013 05:30 PM, Mircea Gherzan wrote:
> On 27.06.2013 16:58, Pedro Alves wrote:
>> On 06/27/2013 03:22 PM, Mircea Gherzan wrote:
>>> When direcltly invoking gdb/gdbserver/configure && make, the build will
>>> fail because the $(host_alias) is empty and thus create-version.sh does
>>> not get enough parameters.
>>
>> Wasn't this fixed by this patch?
>
> No, because in the standalone case both host_alias and target_alias are
> empty. The patch below only handles an empty target_alias.
Ah.
"The variables ‘build_alias’, ‘host_alias’, and ‘target_alias’ are
always exactly the arguments of --build, --host, and --target; in particular,
they are left empty if the user did not use them, even if the
corresponding AC_CANONICAL macro was run.
>
> -host_alias = @host_alias@
> +host_alias = @host@
> target_alias = @target_alias@
and "host" is the canonical form, gotcha.
But instead of that, then, which I'd call a hack, we should
instead do:
host_alias = @host_alias@
target_alias = @target_alias@
+host = @host@
+target = @target@
version.c: Makefile $(srcdir)/../common/version.in $(srcdir)/../../bfd/version.h $(srcdir)/../common/create-version.sh
$(SHELL) $(srcdir)/../common/create-version.sh $(srcdir)/.. \
- $(host_alias) $(target_alias) version.c
+ $(host) $(target) version.c
In GDB, GDBserver, and elsewhere necessary.
--
Pedro Alves
next prev parent reply other threads:[~2013-06-27 17:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-27 14:58 Mircea Gherzan
2013-06-27 15:04 ` Pedro Alves
2013-06-27 16:56 ` Mircea Gherzan
2013-06-27 17:42 ` Pedro Alves [this message]
2013-06-27 17:46 ` Pedro Alves
2013-06-27 17:46 ` Pedro Alves
2013-06-27 18:42 ` Mircea Gherzan
2013-06-27 18:52 ` Tom Tromey
2013-06-27 17:29 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51CC7888.1060301@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=mircea.gherzan@intel.com \
--cc=tromey@redhat.com \
--cc=yao@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox