MESSAGE
DATE | 2021-01-25 |
FROM | Gavin Smith
|
SUBJECT | Re: [Hangout - NYLXS] Future plans for Autotools
|
From hangout-bounces-at-nylxs.com Mon Jan 25 19:27:26 2021 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www2.mrbrklyn.com (www2.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id AC84D16406A; Mon, 25 Jan 2021 19:27:25 -0500 (EST) X-Original-To: hangout-at-www2.mrbrklyn.com Delivered-To: hangout-at-www2.mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 1000) id 798FF164063; Mon, 25 Jan 2021 19:27:07 -0500 (EST) Resent-From: Ruben Safir Resent-Date: Mon, 25 Jan 2021 19:27:07 -0500 Resent-Message-ID: <20210126002707.GC8613-at-www2.mrbrklyn.com> Resent-To: hangout-at-mrbrklyn.com X-Original-To: ruben-at-mrbrklyn.com Delivered-To: ruben-at-mrbrklyn.com Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mrbrklyn.com (Postfix) with ESMTP id 8A2FA164057 for ; Mon, 25 Jan 2021 17:59:37 -0500 (EST) Received: from localhost ([::1]:56262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4Apd-0001PC-4y for ruben-at-mrbrklyn.com; Mon, 25 Jan 2021 17:59:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4ApA-0001Eg-TE for autoconf-at-gnu.org; Mon, 25 Jan 2021 17:59:09 -0500 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:40498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4Ap8-0005UY-QW; Mon, 25 Jan 2021 17:59:08 -0500 Received: by mail-ed1-x52c.google.com with SMTP id a14so6234331edu.7; Mon, 25 Jan 2021 14:59:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Fsu1LWfyw5Ztq1qQ6W/+SbpITBMfHty8sCm/q1cZe2s=; b=qId/LmVM6+Rm6BSU37iG5nrfQTQqvwvkMOmIn0kztGiFOd+Wbdw7rt3/ck5BiP+uJY pz7cvcTMyhukwl3WUUaPmmult1M0R2ihydSoJh82fqVc7IO2IJoGfwnsgwetRrM+Axn5 4ozUm4pJvDxb7JQyavWEV+MOIelW1EP41qZPoC3usQ35OiM9FzQxUlO13S3Kt44qEbK2 QjzNlgEvOHazEw8SV5X3kY5GC6cW8S3QN5xOpxuajPU4GuMWolsIuP57m31nY7xGiZlP sSGAaX+btuqxFK6RcJ7lBtUgiVjg/Hzq/yJg0Kgg2iulG6WXRuOAdrhb4VPbIZVByPGi RhXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Fsu1LWfyw5Ztq1qQ6W/+SbpITBMfHty8sCm/q1cZe2s=; b=cK/z21THqE1pfYL32sLaHyceePJImI4GjehA+pqz9sJvnFMl1pLEDakyM1aGPt2lnd k5O2RZ2lpTRpVaO6YdjM/Ykk6pBX2+RYknh9aKekTEEuv8aohpI2kLZaLCtl/8Twe11r l5k4W/LQefVL5bCnngKtY6Lqg9Y40I4lSP4HPdpKiOBXY2OKm83B+s7N9akVayRcg59h v9YVQNc6mCcwJW9rst9qUa2pMEKKU6wbKUiAyenwX0hvEh1zackYMjK6qtW+MO23U2Ze Rl/JHwTO95sEGaB9Y3Epoq9LZuEryrdmw92JLfuLbyphjGjnw9e0+tNHwcfNTchyp5cY R1Gw== X-Gm-Message-State: AOAM530db+B5rV7QLQunjKrObWwA91M0GyExzFxmD5ljrnm9uP/BVq8L bqrWkcM+RHj+Xwvx7+6fGSo= X-Google-Smtp-Source: ABdhPJwKlmpwNpbwHpXwiM39nFCiteaI9sLSCgaf+29Z5uOwOKYsWWk/txpHQo/3inSAnuNyy2bjzQ== X-Received: by 2002:a05:6402:55:: with SMTP id f21mr2413753edu.38.1611615544543; Mon, 25 Jan 2021 14:59:04 -0800 (PST) Received: from mintstar.lan (53.48.208.46.dyn.plus.net. [46.208.48.53]) by smtp.gmail.com with ESMTPSA id f16sm8808645ejh.88.2021.01.25.14.59.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 14:59:04 -0800 (PST) From: Gavin Smith X-Google-Original-From: Gavin Smith Received: by mintstar.lan (Postfix, from userid 1000) id 12ED5B40251; Mon, 25 Jan 2021 22:59:01 +0000 (GMT) Date: Mon, 25 Jan 2021 22:59:01 +0000 To: Paul Eggert Message-ID: <20210125225901.GA22668-at-mintstar> References: <87zh12osjk.fsf-at-tromey.com> <87eei97w7a.fsf-at-tromey.com> <25f02fe5254319a29cde8215893450fc0e0850f7.camel-at-gnu.org> <6f2198b7-70e4-91de-b4ee-aa8ec7eef912-at-cs.ucla.edu> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <6f2198b7-70e4-91de-b4ee-aa8ec7eef912-at-cs.ucla.edu> User-Agent: Mutt/1.9.4 (2018-02-28) Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=gavinsmith0123-at-gmail.com; helo=mail-ed1-x52c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: autoconf-at-gnu.org X-Mailman-Version: 2.1.23 Precedence: list Cc: Autoconf Subject: Re: [Hangout - NYLXS] Future plans for Autotools X-BeenThere: hangout-at-nylxs.com List-Id: NYLXS Tech Talk and Politics List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: hangout-bounces-at-nylxs.com Sender: "Hangout"
On Mon, Jan 25, 2021 at 02:10:01PM -0800, Paul Eggert wrote: > On 1/25/21 5:37 AM, Paul Smith wrote: > > The only thing that would make much of a performance difference, I > > think, is if we are able to replace lots of shell invocations with > > built-in make functions like wildcard, if, etc. > > One other thing could be a significant performance win: if we could use GNU > 'make -j' to run most of the guts of the 'configure' script in parallel. > Waiting for 'configure' to finish is something that slows me down a lot; > often times 'configure' takes longer than the subsequent 'make', simply > because 'configure' is inherently sequential. >
It could be worth explaining how exactly this works so that one test or rule can use the results of another test.
For example, there would be some rule to build a file foo.o:
foo.o: foo.c $(CC) -c foo.c
This depends on the value of CC being available, which with autoconf is set with the AC_PROG_CC macro before make even runs. So maybe you have
foo.o: CC=$(shell cat CC.conf) foo.o: foo.c CC.conf $(CC) -c foo.c
CC.conf: ... checks for cc
storing the value that should be in CC in the file CC.conf. Does this work or does GNU make have other ways of doing this? (It would be better if it could be done without communicating via files.) Is there any way to set a Makefile variable from within a rule and then depend upon that variable being set in other rules? _______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
|
|