Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfxcp-0006mO-1B for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Nov 2020 04:02:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfxcn-0004PY-Vw for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Nov 2020 04:02:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfxcn-0004PR-Oy for pgsql-hackers@lists.postgresql.org; Fri, 20 Nov 2020 04:02:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfxcl-0002ck-Mf for pgsql-hackers@lists.postgresql.org; Fri, 20 Nov 2020 04:02:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 0AK42DUK1264820; Thu, 19 Nov 2020 23:02:13 -0500 From: Tom Lane To: James Hilliard cc: pgsql-hackers@lists.postgresql.org Subject: Re: [PATCH 1/1] Fix compilation on mac with Xcode >= 11.4. In-reply-to: References: <20201120003314.20560-1-james.hilliard1@gmail.com> <1256728.1605832823@sss.pgh.pa.us> <1257704.1605834289@sss.pgh.pa.us> <1260724.1605838811@sss.pgh.pa.us> <1261863.1605840532@sss.pgh.pa.us> Comments: In-reply-to James Hilliard message dated "Thu, 19 Nov 2020 20:22:27 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1264818.1605844933.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 19 Nov 2020 23:02:13 -0500 Message-ID: <1264819.1605844933@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk James Hilliard writes: > On Thu, Nov 19, 2020 at 7:48 PM Tom Lane wrote: >> Oh, scratch that, I fat-fingered the experiment somehow. The issue >> is still there. Still, I'm hesitant to apply the fix you suggest, >> because of the law of unintended consequences. In particular, I'm >> afraid that using -isysroot in the link step might result in executable= s >> that are bound to that sysroot and will not work if it's not there >> --- thus causing a problem for packagers trying to distribute PG >> to non-developers. > Since apple doesn't actually put real dylib's in the SDK path I think > we're fine: > $ find /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platf= orm/Developer/SDKs/MacOSX11.0.sdk > -name "*.dylib" True. Also, while actual documentation on -isysroot seems to be damn near nonexistent, all the example usages I can find on the net appear to put it into both compile and link steps. So maybe we're just doing it wrong and happened to get away with that this long. > This seems to be a longstanding issue, I expect they don't care much abo= ut > autotools compared with their normal Xcode project build system. So prob= ably > better to just give this a try and see how it goes as it's likely to > keep popping up otherwise. Yeah, the one saving grace here is that, unlike the last time, we're not hard up against a release deadline. If we push this now we can hope to get a fair amount of testing from PG developers before we have to ship it. regards, tom lane