Re: LD_LIBRARY_PATH_RPATH

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: LD_LIBRARY_PATH_RPATH
Дата
Msg-id 87sgx87yj1.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на Re: LD_LIBRARY_PATH_RPATH  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: LD_LIBRARY_PATH_RPATH  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.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)


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Tsunakawa, Takayuki"
Дата:
Сообщение: RE: reloption to prevent VACUUM from truncating empty pages at theend of relation
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: reloption to prevent VACUUM from truncating empty pages at theend of relation