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 1oZIlB-0004N4-AL for pgsql-general@arkaria.postgresql.org; Fri, 16 Sep 2022 21:20:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oZIl9-0007JI-Tp for pgsql-general@arkaria.postgresql.org; Fri, 16 Sep 2022 21:20:27 +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 1oZIl9-0007J9-JR for pgsql-general@lists.postgresql.org; Fri, 16 Sep 2022 21:20:27 +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 1oZIl6-00005r-Ed for pgsql-general@lists.postgresql.org; Fri, 16 Sep 2022 21:20:26 +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 28GLKNxD3890876; Fri, 16 Sep 2022 17:20:23 -0400 From: Tom Lane To: Christophe Pettus cc: pgsql-general list Subject: Re: Extension rpath issues on MacOS In-reply-to: References: Comments: In-reply-to Christophe Pettus message dated "Fri, 16 Sep 2022 14:06:59 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3890874.1663363223.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 16 Sep 2022 17:20:23 -0400 Message-ID: <3890875.1663363223@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Christophe Pettus writes: > Has anyone encountered this situation (not libjvm in particular, just an= external library using @rpath) during an extension build? Yeah ... IIRC, I've hit that from trying to use the Apple-supplied libpython to underlie PL/Python. I've not found a workaround. I suspect that Apple doesn't want people using these OS components from "outside", and this is something they're intentionally doing to prevent it. IOW: I think they want you to get that from macports or homebrew instead. It certainly works a lot easier if you do. regards, tom lane