From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Removing link-time cross-module refs in contrib
Date: Mon, 03 Oct 2016 15:40:12 -0400
Message-ID: <11071.1475523612@sss.pgh.pa.us> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Andres Freund <andres@anarazel.de> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, andres@anarazel.de
Subject: Re: Removing link-time cross-module refs in contrib
In-Reply-To: <11071.1475523612@sss.pgh.pa.us>
References: <2652.1475512158@sss.pgh.pa.us> <20161003183639.fhlcz6zb5ylb3fil@alap3.anarazel.de> <8834.1475520560@sss.pgh.pa.us> <20161003185633.5jntp5ppugbiqxa4@alap3.anarazel.de> <11071.1475523612@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox