From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4557 invoked by alias); 28 Jun 2013 09:55:00 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 4546 invoked by uid 89); 28 Jun 2013 09:54:59 -0000 X-Spam-SWARE-Status: No, score=-5.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from mga09.intel.com (HELO mga09.intel.com) (134.134.136.24) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 28 Jun 2013 09:54:58 +0000 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 28 Jun 2013 02:46:31 -0700 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 28 Jun 2013 02:49:40 -0700 Received: from ulslx001.iul.intel.com (ulslx001.iul.intel.com [172.28.207.63]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id r5S9mpMi005099; Fri, 28 Jun 2013 10:48:51 +0100 Received: from ulslx001.iul.intel.com (localhost [127.0.0.1]) by ulslx001.iul.intel.com with ESMTP id r5S9mpkb013866; Fri, 28 Jun 2013 11:48:51 +0200 Received: (from mgherza1@localhost) by ulslx001.iul.intel.com with id r5S9moDH013862; Fri, 28 Jun 2013 11:48:50 +0200 From: Mircea Gherzan To: yao@codesourcery.com, tromey@redhat.com, palves@redhat.com Cc: gdb-patches@sourceware.org, Mircea Gherzan Subject: [PATCH v2] gdbserver: fix the standalone build Date: Fri, 28 Jun 2013 10:28:00 -0000 Message-Id: <1372412908-13829-1-git-send-email-mircea.gherzan@intel.com> X-SW-Source: 2013-06/txt/msg00871.txt.bz2 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 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 --- 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