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}}.
_______________________________________________
maintainers mailing list
[email protected]
https://lists.opencsw.org/mailman/listinfo/maintainers
.:: This mailing list's archive is public. ::.

Reply via email to