[csw-maintainers] Private shared libraries

Maciej (Matchek) Blizinski maciej at opencsw.org
Tue Jan 18 20:41:09 CET 2011


I've just added the following bit of text to our wiki page about
shared libraries[1].  It explains how to create a directory for
private shared libraries.

[1] http://wiki.opencsw.org/packaging-shared-libraries#toc10

+++ Private shared libraries

Some software projects install private (non-linkable) shared libraries
into libdir (e.g. {{/opt/csw/lib}}) by default.  To ensure that they
are private, they need to be moved to a subdirectory, e.g.
{{/opt/csw/lib/<project>}}.

To create a private library and install 32 and 64-bit libraries, they
need to be laid out as follows:

On sparc:

[[code]]
/opt/csw/lib/foo
/opt/csw/lib/foo/32 --> .
/opt/csw/lib/foo/64 --> sparcv9
[[/code]]

On i386:

[[code]]
/opt/csw/lib/foo
/opt/csw/lib/foo/32 --> .
/opt/csw/lib/foo/64 --> amd64
[[/code]]

In GAR, it can be simplified by symlinking:
* 32 to {{$(ISA_DEFAULT)}}
* 64 to {{$(ISA_DEFAULT64)}}

The runpath needs to be set to {{/opt/csw/lib/foo/64}}, e.g.
{{-R/opt/csw/lib/foo/64}}.


More information about the maintainers mailing list