Boost logo

Boost-Build :

Subject: Re: [Boost-build] Bundles (plugins) and rpath install
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2008-10-21 21:23:41


J. van der Wulp wrote:
> I have compiled a small patch (against trunk) for darwin.jam to allow:
> - building of bundles (uses -bundle option instead of -dynamiclib)
> - rpath installation
>
> The bundle part introduces a feature bundle that is used to choose
> between the -bundle and -dynamiclib options. The bundle feature may not
> be the most optimal way of doing this.

Depends on your definition of optimal ;-) The ideal, from BBv2's point
of view, is to have a different type of shared target for a bundle. With
a different type other options can be adjusted without impacting the
regular shared lib building. And if I remember correctly, just using
-bundle isn't enough to build bundles.

> The install name of a library (-install_name linker option) is the only
> way I could find to embed the full path into the library. The patch adds
> prepends $(RPATH[1])/ to the argument of -install_name (used to be just
> $(<:B)$(<:S)).

This would be the wrong way to go about doing this. We intentionally put
the short name so as to allow easier standalone deployment of libs as
it's what people using Unix are familiar with. Usually it's up to the
installer, whether it's the user or an install script, to run the
library renaming program to re-tag the library with the installed path.
I don't remember the name of the Xcode tool for doing this at the moment
though.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org (msn) - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim,yahoo,skype,efnet,gmail

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk