From: Mircea Gherzan <mircea.gherzan@intel.com>
To: yao@codesourcery.com, tromey@redhat.com, palves@redhat.com
Cc: gdb-patches@sourceware.org, Mircea Gherzan <mircea.gherzan@intel.com>
Subject: [PATCH v2] gdbserver: fix the standalone build
Date: Fri, 28 Jun 2013 10:28:00 -0000 [thread overview]
Message-ID: <1372412908-13829-1-git-send-email-mircea.gherzan@intel.com> (raw)
When directly 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.
Ok to apply?
2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
gdbserver:
* Makefile.in (host): Add it.
(target): Add it.
(host_alias): If empty, assign $(host) to it.
(target_alias): If empty, assign $(target) to it.
Signed-off-by: Mircea Gherzan <mircea.gherzan@intel.com>
---
gdb/gdbserver/Makefile.in | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index e5ecdd3..4b833bd 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -18,6 +18,8 @@
prefix = @prefix@
exec_prefix = @exec_prefix@
+host = @host@
+target = @target@
host_alias = @host_alias@
target_alias = @target_alias@
program_transform_name = @program_transform_name@
@@ -25,6 +27,14 @@ bindir = @bindir@
libdir = @libdir@
tooldir = $(libdir)/$(target_alias)
+ifeq ($(host_alias),)
+ host_alias = $(host)
+endif
+
+ifeq ($(target_alias),)
+ target_alias = $(target)
+endif
+
datarootdir = @datarootdir@
datadir = @datadir@
mandir = @mandir@
--
1.7.12.4
next reply other threads:[~2013-06-28 9:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-28 10:28 Mircea Gherzan [this message]
2013-06-28 12:00 ` Pedro Alves
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=1372412908-13829-1-git-send-email-mircea.gherzan@intel.com \
--to=mircea.gherzan@intel.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.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