Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCPvN-0002rN-NB for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Oct 2018 14:02:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gCPvI-0002L4-Pw for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Oct 2018 14:02:12 +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 1gCPvI-0002Kw-Is for pgsql-hackers@lists.postgresql.org; Tue, 16 Oct 2018 14:02:12 +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 1gCPvE-00053g-9e for pgsql-hackers@lists.postgresql.org; Tue, 16 Oct 2018 14:02:12 +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 w9GE2394029536; Tue, 16 Oct 2018 10:02:04 -0400 From: Tom Lane To: Jakob Egger cc: pgsql-hackers@lists.postgresql.org Subject: Re: PG vs macOS Mojave In-reply-to: References: <20840.1537850987@sss.pgh.pa.us> Comments: In-reply-to Jakob Egger message dated "Tue, 16 Oct 2018 13:56:49 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29534.1539698523.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 16 Oct 2018 10:02:03 -0400 Message-ID: <29535.1539698523@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jakob Egger writes: > Am 25. Sep. 2018 um 06:49 schrieb Tom Lane : >> It's a bit scary to be adding -isysroot globally. > This breaks building extensions with a different SDK than the server its= elf. Hm, under what circumstances would that be safe or a good idea? The concerns that strike my mind are mainly around the hazard that configure's choices could be inappropriate for a build with a different SDK. Given that, though, wiring -isysroot into the configure output doesn't seem all that insane. It's possible that we could arrange things so that the generated Makefile.global looks like PG_SYSROOT =3D /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX= .platform/Developer/SDKs/MacOSX10.14.sdk = CPPFLAGS =3D -isysroot $(PG_SYSROOT) instead of CPPFLAGS =3D -isysroot /Applications/Xcode.app/Contents/Developer/Platfor= ms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk = thus making it a bit simpler to override that path at build time. But I'm not sure that that really moves the goalposts very far for you in terms of ease-of-use, and anyway it might just be greasing the skids to a non-working extension. regards, tom lane