On Jan 8, 2009, at 3:29 AM, Peter W. Draper wrote:
> On Wed, 7 Jan 2009, Tim Jenness wrote:
>
>> On Jan 7, 2009, at 7:26 AM, Malcolm J. Currie wrote:
>>>
>>> Is the binary release fully relocatable? Being able to install
>>> packages without root privilege is one of the requirements of FASE;
>>> it's not just Starlink that has had this defect. If we're
>>> confident, then let's announce it here.
>>>
>>
>> on linux. OSX doesn't like it at the moment because the linker still
>> wants to link against the original library location. There is a
>> special OSX linker flag that allows libraries to be located using a
>> relative path to binaries (how else would Mac applications be able to
>> be bundled) but configure (and more importantly libtool I imagine) is
>> not using it.
>
> I had a look at libtool 2 and don't see any support for this feature.
The other approach is to use -headerpad_max_install_names and the
install_name_tool.
The real trick is to use @executable_path for the install_name:
http://blog.onesadcookie.com/2008/01/installname-magic.html
but have no idea how to handle that in libtool. Maybe we will need to
just do it all after the build but at least it looks like we can add
@executable_path to the install name after building and before we ship
(so the user does not need to do it).
--
Tim Jenness
Joint Astronomy Centre
|