[csw-maintainers] GAR: Adding a /opt/csw/lib/foo/64 --> /opt/csw/lib/foo/{amd64, sparcv9} link

Philip Brown phil at bolthole.com
Mon Nov 23 18:56:06 CET 2009


On Mon, Nov 23, 2009 at 4:41 AM, Maciej (Matchek) Blizinski
<maciej at opencsw.org> wrote:
> I'm working on a library package with the *.so files in
> /opt/csw/lib/foo.  The package will have 64-bit support, so the shared
> objects will be:
>
> /opt/csw/lib/foo/*.so
> /opt/csw/lib/foo/sparcv9/*.so
> /opt/csw/lib/foo/amd64/*.so
>
> I've noticed that CSWcommon provides a symlink: /opt/csw/lib/64.  It
> points to amd64 or sparcv9 depending on the host architecture.  This
> link is needed to provide a architecture independent -L flag for
> 64-bit builds: /opt/csw/lib/foo/64.
>
> I guess that something along the lines of ln -s sparcv9
> /opt/csw/lib/foo/64, or amd64, depending on the architecture.  What's
> the right GAR idiom for it?  Should it be a post-merge target?
>

Eh, that's just a convention. If the library (or packages USING the
library) work as-is, there's no need for you to be making those
symlinks.



More information about the maintainers mailing list