Re: pgNixInstaller: Making PostgreSQL relocatable

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: pgNixInstaller: Making PostgreSQL relocatable
Дата
Msg-id 20060324122539.GA8718@svana.org
обсуждение исходный текст
Ответ на Re: pgNixInstaller: Making PostgreSQL relocatable  (John DeSoi <desoi@pgedit.com>)
Ответы Re: pgNixInstaller: Making PostgreSQL relocatable  (John DeSoi <desoi@pgedit.com>)
Список pgsql-hackers
On Thu, Mar 23, 2006 at 07:47:13PM -0500, John DeSoi wrote:
>
> On Mar 23, 2006, at 12:15 AM, Tom Lane wrote:
>
> >OK ... it's supposed to work to shift the whole installation tree to
> >a new root, ie, paths to places like the /share and /lib directories
> >are determined relative to where the backend executable actually is.
> >If this is not working on Solaris then for sure we want to know ...
>
> It is not relocatable on OS X. The full prefix path seems to be used
> instead. For example:

I don't understand. Dynamic linkers have for years been smart enough to
find libraries by themselves. Fixed paths are a pain, which is why
Debian forbids the use of RPATH for example.

Anyway, looking at the manpage of otool it doesn't say that it just
prints the raw name, so perhaps it's doing the same as ldd. To be sure
you'd need to strings the binary to see what it says.

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/otool.1.html

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

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

Предыдущее
От: Thomas Hallgren
Дата:
Сообщение: Shared memory
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Shared memory