From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25134 invoked by alias); 12 Jul 2011 19:48:31 -0000 Received: (qmail 25125 invoked by uid 22791); 12 Jul 2011 19:48:30 -0000 X-SWARE-Spam-Status: No, hits=-6.9 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, 12 Jul 2011 19:48:13 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6CJm6iE017368 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 12 Jul 2011 15:48:06 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p6CJm5Qg017365; Tue, 12 Jul 2011 15:48:05 -0400 Received: from barimba (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 p6CJm4we005570; Tue, 12 Jul 2011 15:48:04 -0400 From: Tom Tromey To: Mike Frysinger Cc: gdb-patches@sourceware.org, toolchain-devel@blackfin.uclinux.org Subject: Re: [PATCH] sim: generate build dependencies on the fly References: <1310436152-8693-1-git-send-email-vapier__46811.2245122485$1310436164$gmane$org@gentoo.org> Date: Tue, 12 Jul 2011 19:49:00 -0000 In-Reply-To: <1310436152-8693-1-git-send-email-vapier__46811.2245122485$1310436164$gmane$org@gentoo.org> (Mike Frysinger's message of "Mon, 11 Jul 2011 22:02:32 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-07/txt/msg00312.txt.bz2 >>>>> "Mike" == Mike Frysinger writes: Mike> Lift the code that GDB is using to generate dependencies on the Mike> fly and port it over to the sim. Now people shouldn't have to Mike> manually maintain these in their Makefile's (for the most part). Thanks. I think it is a good idea. Mike> Generated header files still need to be manually tracked. Why is that? Mike> -VPATH = @srcdir@ Mike> +VPATH = @srcdir@:$(srccom) The Autoconf manual lists various problems with VPATH. You can't use variable references in VPATH. Also VPATH won't work properly with built sources. I'm not sure if your patch relies on that or not. Finally I thought there was some problem with multiple entries in VPATH, but I cannot find that in the docs. Perhaps it is one of those ancient incorrect memories. It would bear testing with a non-GNU make. Mike> +depcomp = $(SHELL) $(srcdir)/../depcomp This seems like the wrong directory to me. I would have expected $(srcdir)/../../depcomp. Tom