This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v3] gdbserver: fix the standalone build
- From: Yao Qi <yao at codesourcery dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Mircea Gherzan <mircea dot gherzan at intel dot com>, <tromey at redhat dot com>, <gdb-patches at sourceware dot org>
- Date: Sat, 29 Jun 2013 10:11:30 +0800
- Subject: Re: [PATCH v3] gdbserver: fix the standalone build
- References: <1372420771-942-1-git-send-email-mircea dot gherzan at intel dot com> <51CD7ED4 dot 6070104 at codesourcery dot com> <51CD8023 dot 3030308 at redhat dot com>
On 06/28/2013 08:22 PM, Pedro Alves wrote:
Doesn't GDB, and whatever other users of create-version.h, need the
same treatment first?
In GDB, the 'target_alias' and 'host_alias' can't be empty, and
create-version.sh only has two users, GDB and GDBserver.
GDB is configured from the top level. On the top level, the FOO_alias
is set to @FOO_noncanonical@ (in Makefile.tpl). The
'target_noncanonical' is similar to 'version_target' we computed in
gdbserver/configure.ac. See config/acx.m4,
dnl ####
dnl # _GCC_TOPLEV_NONCANONICAL_TARGET
dnl # $target_alias or $host_noncanonical if blank.
dnl # Used when we would use $target_alias, but empty is not OK.
AC_DEFUN([_GCC_TOPLEV_NONCANONICAL_TARGET],
[AC_REQUIRE([_GCC_TOPLEV_NONCANONICAL_HOST]) []dnl
case ${target_alias} in
"") target_noncanonical=${host_noncanonical} ;;
*) target_noncanonical=${target_alias} ;;
esac
]) []dnl # _GCC_TOPLEV_NONCANONICAL_TARGET
and macro ACX_NONCANONICAL_TARGET is invoked in configure.ac.
the gdb/configure is invoked by passing "--build=${build_alias}
--host=${host_alias} --target=${target_alias}" from the top level (see
rule configure-gdb in Makefile.in).
--
Yao (éå)