This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2] gdbserver: fix the standalone build
- From: Mircea Gherzan <mircea dot gherzan at intel dot com>
- To: yao at codesourcery dot com, tromey at redhat dot com, palves at redhat dot com
- Cc: gdb-patches at sourceware dot org, Mircea Gherzan <mircea dot gherzan at intel dot com>
- Date: Fri, 28 Jun 2013 11:48:28 +0200
- Subject: [PATCH v2] gdbserver: fix the standalone build
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