From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1090 invoked by alias); 25 Jun 2008 21:14:05 -0000 Received: (qmail 1009 invoked by uid 22791); 25 Jun 2008 21:14:04 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 25 Jun 2008 21:13:45 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 205242A9675 for ; Wed, 25 Jun 2008 17:13:43 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SlkgFgvmLvPM for ; Wed, 25 Jun 2008 17:13:43 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 078112A9644 for ; Wed, 25 Jun 2008 17:13:43 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id CB02EE7ACD; Wed, 25 Jun 2008 17:13:42 -0400 (EDT) Date: Wed, 25 Jun 2008 21:14:00 -0000 From: Joel Brobecker To: gdb@sourceware.org Subject: Re: gnulib dependency in gdbserver Message-ID: <20080625211342.GF7272@adacore.com> References: <20080625191621.GI3700@adacore.com> <20080625192247.GA29115@caradoc.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080625192247.GA29115@caradoc.them.org> User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00259.txt.bz2 > How are you configuring? It sounds like you're trying to share an > object directory (same as srcdir?) for configured gdb and gdbserver; Actually, I was configuring from separate trees. > instead, if you build them both in separate object directories, things > will just work out. I think I can see why things should work for most things (things such as the generation of the reg-*.c files for instance), but I can't figure out things should work for gnulib. I found the pieces that tell configure to check for memmem and use the one in memmem if the later is not found, but I haven't found the bits that would configure gnulib. In particular, configuring gnulib would allow me to get stdlib.h. Should the files generated by the gnulib configure be stored in the gdbserver directory, btw? Just as an aside, I noticed the following two rules which look suspicious: signals.o: ../signals/signals.c $(server_h) $(CC) -c $(CPPFLAGS) $(INTERNAL_CFLAGS) $< -DGDBSERVER memmem.o: ../gnulib/memmem.c $(CC) -o memmem.o -c $(CPPFLAGS) $(INTERNAL_CFLAGS) $< Should the ../[...] be relative to $(srcdir)? Surprisingly, it seems to work, but I don't understand why... -- Joel