From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14972 invoked by alias); 16 Nov 2016 17:23:41 -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 14962 invoked by uid 89); 16 Nov 2016 17:23:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=3.82, bugfix, ipa-specific, ipaspecific X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 16 Nov 2016 17:23:31 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c73vh-0002Zk-MA for gdb-patches@sourceware.org; Wed, 16 Nov 2016 12:23:29 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c73vh-0002Za-In; Wed, 16 Nov 2016 12:23:25 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4347 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c73vg-0004Zh-TY; Wed, 16 Nov 2016 12:23:25 -0500 Date: Wed, 16 Nov 2016 17:23:00 -0000 Message-Id: <83inrnfier.fsf@gnu.org> From: Eli Zaretskii To: Simon Marchi CC: gdb-patches@sourceware.org In-reply-to: <814e16be74a92751d1a2e47ba88b6ad9@polymtl.ca> (message from Simon Marchi on Wed, 16 Nov 2016 12:05:02 -0500) Subject: Re: [PATCH 1/4] Document new hard requirement on GNU make Reply-to: Eli Zaretskii References: <20161116160808.12830-1-simon.marchi@ericsson.com> <20161116160808.12830-2-simon.marchi@ericsson.com> <83oa1ffkwa.fsf@gnu.org> <814e16be74a92751d1a2e47ba88b6ad9@polymtl.ca> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00434.txt.bz2 > Date: Wed, 16 Nov 2016 12:05:02 -0500 > From: Simon Marchi > Cc: Simon Marchi , gdb-patches@sourceware.org > > > 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. If all we want to use is pattern rules, then there's no problem. But I envision that soon enough we'd want to use more, like target-specific variables, functions like $(eval) and $(file), variables like $(MAKE_HOST), etc. > %.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. 3.82 shouldn't be a problem, I think.