From owner-svn-src-head@FreeBSD.ORG Sat Mar 27 02:21:17 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10BD4106564A; Sat, 27 Mar 2010 02:21:17 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id C479D8FC19; Sat, 27 Mar 2010 02:21:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o2R2H4eq020650; Fri, 26 Mar 2010 20:17:04 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 26 Mar 2010 20:16:41 -0600 (MDT) Message-Id: <20100326.201641.200754750166606483.imp@bsdimp.com> To: marcel@freebsd.org From: "M. Warner Losh" In-Reply-To: <201003261940.o2QJerY1041668@svn.freebsd.org> References: <201003261940.o2QJerY1041668@svn.freebsd.org> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r205710 - head/gnu/usr.bin/gdb X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2010 02:21:17 -0000 In message: <201003261940.o2QJerY1041668@svn.freebsd.org> Marcel Moolenaar writes: : Author: marcel : Date: Fri Mar 26 19:40:53 2010 : New Revision: 205710 : URL: http://svn.freebsd.org/changeset/base/205710 : : Log: : Handle cross-builds for gdbserver. Cross-builds outside the normal build system? Otherwise, MACHINE_ARCH is the right thing to check since TARGET* is only set in the bootstrapping stages, not the actual build stages. Warner : Modified: : head/gnu/usr.bin/gdb/Makefile : : Modified: head/gnu/usr.bin/gdb/Makefile : ============================================================================== : --- head/gnu/usr.bin/gdb/Makefile Fri Mar 26 19:00:17 2010 (r205709) : +++ head/gnu/usr.bin/gdb/Makefile Fri Mar 26 19:40:53 2010 (r205710) : @@ -2,7 +2,9 @@ : : SUBDIR= doc libgdb gdb gdbtui kgdb : : -.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" : +TARGET_ARCH?= ${MACHINE_ARCH} : +.if ${TARGET_ARCH} == "amd64" || ${TARGET_ARCH} == "arm" || \ : + ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "powerpc" : SUBDIR+=gdbserver : .endif : :