From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Date: 2019-02-01 07:51:10
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

>>>>> "Tom" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

>> At least on my FreeBSD 11 box, the current definition of
>> $(with_temp_install) is not sufficient to ensure that the various
>> .so files are loaded from tmp_install and not from the compiled
>> rpath (which will be the final install dir, which may of course
>> contain old libraries).

>> LD_LIBRARY_PATH_RPATH=1 fixes this (by giving LD_LIBRARY_PATH
>> priority over the DT_RPATH tag in the object).

>> Is this also an issue on any other platforms?

Tom> Hm. Can't reproduce that on current NetBSD or macOS; don't have
Tom> OpenBSD booted up to try right now.

The OpenBSD manpage I found says that they give LD_LIBRARY_PATH priority
over DT_RPATH, so I guess it's not an issue there.

Tom> However, if it helps on some platforms, I can't see much harm in
Tom> adding it in the relevant places. It should be a no-op everywhere
Tom> else.

Is there some reason why ld_library_path_var is defined using a bunch of
$(if) constructs rather than putting the value (if not LD_LIBRARY_PATH)
in the individual port makefiles?

Andrew (irc:RhodiumToad)

In response to


Browse pgsql-hackers by date

  From Date Subject
Next Message Laurenz Albe 2019-02-01 08:11:50 Re: reloption to prevent VACUUM from truncating empty pages at the end of relation
Previous Message Tsunakawa, Takayuki 2019-02-01 07:08:28 RE: reloption to prevent VACUUM from truncating empty pages at the end of relation