From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12508 invoked by alias); 26 Mar 2002 21:53:41 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12213 invoked from network); 26 Mar 2002 21:53:38 -0000 Received: from unknown (HELO rwcrmhc52.attbi.com) (216.148.227.88) by sources.redhat.com with SMTP; 26 Mar 2002 21:53:38 -0000 Received: from ocean.lucon.org ([12.234.143.38]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020326215337.MGWZ1147.rwcrmhc52.attbi.com@ocean.lucon.org>; Tue, 26 Mar 2002 21:53:37 +0000 Received: by ocean.lucon.org (Postfix, from userid 1000) id 686FE125C1; Tue, 26 Mar 2002 13:53:34 -0800 (PST) Date: Tue, 26 Mar 2002 13:53:00 -0000 From: "H . J . Lu" To: DJ Delorie Cc: gdb@sources.redhat.com, gcc@gcc.gnu.org Subject: Re: The canadian cross build is broken Message-ID: <20020326135334.A8928@lucon.org> References: <20020322225214.A23883@lucon.org> <3C9C9F3A.6030609@cygnus.com> <20020323101441.A799@lucon.org> <200203252214.g2PMEqj02765@greed.delorie.com> <20020326132429.A8347@lucon.org> <200203262149.g2QLnIK14130@greed.delorie.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200203262149.g2QLnIK14130@greed.delorie.com>; from dj@redhat.com on Tue, Mar 26, 2002 at 04:49:18PM -0500 X-SW-Source: 2002-03/txt/msg00248.txt.bz2 On Tue, Mar 26, 2002 at 04:49:18PM -0500, DJ Delorie wrote: > > > What multiple host frags? I am not sure what you meant by that. > > Oops, nevermind. I see where you moved that logic to. You need to > check for $frag being empty before adding it to $frags though. Why? Here is the fragment. $frag won't be empty. The default one is mh-${host_cpu}pic: if [ "${shared}" = "yes" ]; then case "${host}" in *-*-cygwin*) ;; alpha*-*-linux*) frag=mh-elfalphapic ;; arm*-*-*) frag=mh-armpic ;; hppa*-*-*) frag=mh-papic ;; i[3456]86-*-*) frag=mh-x86pic ;; mips*-*-linux*) frag=mh-mipspic ;; powerpc*-*-aix*) ;; powerpc*-*-*) frag=mh-ppcpic ;; sparc*-*-*) frag=mh-sparcpic ;; *) frag=mh-${host_cpu}pic ;; esac frags="${frags} ${libiberty_topdir}/config/${frag}" fi Later, we check if it exists: for frag in ${frags}; do if [ -f ${frag} ]; then echo "Appending ${frag} to xhost-mkfrag" echo "# Following fragment copied from ${frag}" >> temp-frag cat ${frag} >> temp-frag fi done before appending it. Did I miss something? H.J. H.J.