Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1br964-000522-9s for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Oct 2016 19:40:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1br963-00069Z-7l for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Oct 2016 19:40:19 +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.84_2) (envelope-from ) id 1br962-00069S-L5 for pgsql-hackers@postgresql.org; Mon, 03 Oct 2016 19:40:18 +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.84_2) (envelope-from ) id 1br95z-0003cW-KO for pgsql-hackers@postgresql.org; Mon, 03 Oct 2016 19:40:18 +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 u93JeCYw011072; Mon, 3 Oct 2016 15:40:12 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgresql.org Subject: Re: Removing link-time cross-module refs in contrib In-reply-to: <20161003185633.5jntp5ppugbiqxa4@alap3.anarazel.de> References: <2652.1475512158@sss.pgh.pa.us> <20161003183639.fhlcz6zb5ylb3fil@alap3.anarazel.de> <8834.1475520560@sss.pgh.pa.us> <20161003185633.5jntp5ppugbiqxa4@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 03 Oct 2016 11:56:33 -0700" Date: Mon, 03 Oct 2016 15:40:12 -0400 Message-ID: <11071.1475523612@sss.pgh.pa.us> X-Pg-Spam-Score: -4.5 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andres Freund writes: > On 2016-10-03 14:49:20 -0400, Tom Lane wrote: >> ... ignoring unresolved symbols in shlibs is the default >> on Linux, and while you can make it throw errors, that just leads to >> errors for all the references into the core backend. Not very helpful. >> AFAICS, GNU ld lacks any equivalent to macOS' -bundle_loader switch, >> which is what we'd need to make this usable. > Hm. I wonder if it's actually possible to link against the main backend, > when compiling as a position-independent-executable... I tried that, didn't work. >> A workable compromise for Linux might be to enable -Wl,-z,now which >> changes unresolved symbol resolution from lazy to on-load. > Hm, I think that's the default already no? Oh, maybe, I was looking for compile switches. Will test. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers