Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f2irz-00032h-Az for pgsql-hackers@arkaria.postgresql.org; Sun, 01 Apr 2018 19:42:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f2irx-0001uC-LF for pgsql-hackers@arkaria.postgresql.org; Sun, 01 Apr 2018 19:42:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f2irx-0001u3-Eb for pgsql-hackers@lists.postgresql.org; Sun, 01 Apr 2018 19:42:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f2irp-00025b-Ug for pgsql-hackers@lists.postgresql.org; Sun, 01 Apr 2018 19:42:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w31JgD47011432; Sun, 1 Apr 2018 15:42:13 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org Subject: Re: Rethinking -L switch handling and construction of LDFLAGS In-reply-to: <20180401192535.pariji2i3aw4rvf4@alap3.anarazel.de> References: <25214.1522604295@sss.pgh.pa.us> <20180401174338.dgwcclz3ljiumaeq@alap3.anarazel.de> <25881.1522605305@sss.pgh.pa.us> <20180401192535.pariji2i3aw4rvf4@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 01 Apr 2018 12:25:35 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11430.1522611733.1@sss.pgh.pa.us> Date: Sun, 01 Apr 2018 15:42:13 -0400 Message-ID: <11431.1522611733@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2018-04-01 13:55:05 -0400, Tom Lane wrote: >> I'm hesitant to do that because LDFLAGS is a name known to make's >> default rules, and I don't want to bet that we're not relying on >> those default rules anywhere. > FWIW, postgres builds cleanly with -r -R in MAKELAGS. That's pretty hard to believe. Why would we bother to override every default rule? Even if it's true today, I would not accept it as project policy that we must do so. Perhaps more to the point, I would strongly object to any design in which the standard Make variables don't mean what the default rules expect them to mean. That's just a recipe for confusing people and creating hard-to-spot bugs. regards, tom lane