From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43003 invoked by alias); 17 Nov 2016 21:14:42 -0000 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 Received: (qmail 42959 invoked by uid 89); 17 Nov 2016 21:14:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=Hx-languages-length:1756, H*f:sk:1479415, H*i:sk:1479415, learn X-Spam-User: qpsmtpd, 2 recipients X-HELO: simark.ca Received: from simark.ca (HELO simark.ca) (158.69.221.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 17 Nov 2016 21:14:31 +0000 Received: by simark.ca (Postfix, from userid 33) id 6ACF11E93D; Thu, 17 Nov 2016 16:14:30 -0500 (EST) To: psmith@gnu.org Subject: Re: Require GNU make to build binutils-gdb X-PHP-Originating-Script: 33:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 17 Nov 2016 21:14:00 -0000 From: Simon Marchi Cc: binutils@sourceware.org, gdb-patches@sourceware.org In-Reply-To: <1479415358.3489.313.camel@gnu.org> References: <144f4f68acf24fc1084b585700c65b63@polymtl.ca> <20161117200637.GV21655@vapier.lan> <1479415358.3489.313.camel@gnu.org> Message-ID: X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.2.2 X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00501.txt.bz2 On 2016-11-17 15:42, Paul Smith wrote: > Regarding the patch linked to earlier, I wonder why multiple pattern > rules were added, rather than just using VPATH plus a few pattern rules > / explicit rules for the special cases? > > I didn't check carefully. Are you talking about gdb/Makefile.in? Could you be more specific? I am not a Makefile expert, so if there's a better way to do what I did, I'd like to learn about it. > If you want to check for 3.81, you could look for the .FEATURES > variable > instead of .VARIABLES; .FEATURES was introduced in 3.81 and is intended > to let your makefile query what features are available without worrying > about specific versions. > > It's also never empty, if it exists. It has one nice advantage in that > it's a static value, while .VARIABLES requires GNU make to create a > list > of the names of all the variables. But, if this check is done early > that's not such a big deal. > > 3.81 was released 10.5 years ago (Apr 2006). Thanks for the tip. I found the original gcc patch that added the 3.80 checking code, it also mentions .FEATURES for checking for 3.81: https://gcc.gnu.org/ml/gcc-patches/2008-04/msg01018.html > automake, technically, generates POSIX compliant makefiles that don't > rely on GNU make features at all and should work with a wide range of > different make implementations. > > At least, that's how it is unless something has changed since I looked > last. I think you're right. Skimming the automake manual, I saw some mentions of tricks you could use if you assumed GNU make would be used. So in the best case, requiring GNU make unlocks some features we could not have used otherwise, and worst case it doesn't change anything.