Boost logo

Boost-Build :

Subject: Re: [Boost-build] OSX linker question
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-09-03 12:41:31


On Sunday 30 August 2009 Michael Jackson wrote:

>
> On Aug 30, 2009, at 4:05 AM, Vladimir Prus wrote:
>
> > 1. What option(s) should I use to avoid the above error at link time?
> > 2. What options should I use to make 'main' find both liba and libb at
> > runtime, without explicit setting of DYLD_LIBRARY_PATH?
> Not completely sure but if the libraries have the correct
> "install_name" embeded in them then there shouldn't be a need for any
> extra library paths.

Well, then you cannot run executables until those libraries are installed,
right?

> But I see from your link command that you are
> explicitly setting the "install_name" to just the name of the library:
>
> -install_name "libb.dylib"
>
> So you will probably have to figure out how to store the path where
> libb was compiled into.

And should I then adjust the install name during install?

- Volodya


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