From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7548 invoked by alias); 18 Jan 2011 15:20:10 -0000 Received: (qmail 7451 invoked by uid 22791); 18 Jan 2011 15:20:07 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Jan 2011 15:19:59 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0IFJoKl000384 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 18 Jan 2011 10:19:51 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p0IFJo2H029770; Tue, 18 Jan 2011 10:19:50 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p0IFJnnC030898; Tue, 18 Jan 2011 10:19:49 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 34ACC378326; Tue, 18 Jan 2011 08:19:49 -0700 (MST) From: Tom Tromey To: Yao Qi Cc: gdb-patches@sourceware.org Subject: Re: [rfa/rfc] Build libcommon.a for gdb and gdbserver References: <4D30E23F.3080103@codesourcery.com> <4D34C9DE.3040603@codesourcery.com> Date: Tue, 18 Jan 2011 15:29:00 -0000 In-Reply-To: <4D34C9DE.3040603@codesourcery.com> (Yao Qi's message of "Mon, 17 Jan 2011 15:59:42 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 X-SW-Source: 2011-01/txt/msg00377.txt.bz2 >>>>> ">" == Yao Qi writes: >> I am a little bit reluctant about adding configure.ac/Makefile.in as >> well, :) We have to add different objects in libcommon.a varies on >> different targets, and seems only configure/Makefile helps on this. I >> can't figure out any alternatives to this in my mind so far. One idea would be to make new top-level directories in src, then either use the generic --disable-DIR configure option, or add a new one to specify that you just want gdbserver. Another idea would be to just have gdb/configure, but have a special Makefile target that only builds gdbserver. Then all the configury would be unified; maybe this is the best option, for that reason. One final option would be to put gdbserver and common into a single directory, so we keep just a single "extra" configure script. Tom> I see that common/Makefile.in doesn't have automatic dependency Tom> tracking. I think it should, especially if we are planning to move more Tom> and more code there. This would be simpler with a single configure:-) >> I'll fix that. FWIW, it may be worth just switching to automake. It is quite a bit of work to do for gdb, but for gdbserver it might not be so bad. Tom