From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88137 invoked by alias); 16 Nov 2016 17:05:14 -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 88124 invoked by uid 89); 16 Nov 2016 17:05:13 -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:1288, 3.82 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; Wed, 16 Nov 2016 17:05:03 +0000 Received: by simark.ca (Postfix, from userid 33) id 3CEBA1E136; Wed, 16 Nov 2016 12:05:02 -0500 (EST) To: Eli Zaretskii Subject: Re: [PATCH 1/4] Document new hard requirement on GNU make 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: Wed, 16 Nov 2016 17:05:00 -0000 From: Simon Marchi Cc: Simon Marchi , gdb-patches@sourceware.org In-Reply-To: <83oa1ffkwa.fsf@gnu.org> References: <20161116160808.12830-1-simon.marchi@ericsson.com> <20161116160808.12830-2-simon.marchi@ericsson.com> <83oa1ffkwa.fsf@gnu.org> Message-ID: <814e16be74a92751d1a2e47ba88b6ad9@polymtl.ca> X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.2.2 X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00428.txt.bz2 On 2016-11-16 11:29, Eli Zaretskii wrote: > OK. > > Should we decide which oldest version of GNU Make we are willing to > support? IOW, which features do we need for the build? > > Thanks. Probably, yes, but I'm not aware of the exact features/bugfix we have to rely on. From what I can see, pattern rules have been around since forever (I checked out a commit of make from 1993, and it was already in the doc). However, if there is a particular bug about pattern rules in some versions of make we want to avoid, I am not aware of it. While trying to make GDBserver use pattern rules as well, I was reading this: http://stackoverflow.com/questions/11455182/when-multiple-pattern-rules-match-a-target I wanted to know which rule would get chosen if you wanted to build foo-ipa.o from foo-ipa.c, and you had the two rules: %.o: %.c %-ipa.o: %-ipa.c With make >= 3.82, it would do the right thing (choose the second one), by choosing the rule with the shorter stem. Before that, it used the order of definition (the first that matches wins). So it would be nice for that reason to require >= 3.82, but it's also possible to work around if that's too recent.