Boost logo

Boost-Build :

Subject: Re: [Boost-build] How do I add system library path to Jamfile which is already in the ld search path?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2014-06-30 04:45:55


On 06/30/2014 05:37 AM, Steve Lorimer wrote:
> I have a project which fails to link due to being unable to find libkrb5.
>
> /usr/bin/ld: cannot find -lkrb5
>
> I am specifying the library in my Jamfile as follows:
>
> lib krb5 ;
>
> The project in my Jamroot only has a single additional library path:
>
> <library-path>/usr/local/lib
>
> So only this path is added to the ld search path:
>
> "g++" -L"/usr/local/lib"
>
> However, locating the library shows it is stored under a standard multiarch path
>
> $ locate libkrb
> /usr/lib/x86_64-linux-gnu/libkrb5.so
>
> The above location is in my ld search path:
>
> $ ldconfig -v 2>/dev/null | grep /usr/lib/x86_64-linux-gnu:
> /usr/lib/x86_64-linux-gnu:
>
> Why does bjam not find the library in the system search path? How can I tell boost.build where this library is?

Normally, it's not Boost.Build which is responsible for searching standard directories, it's linker - and it
should work without -L/<library-path>. What is the actual failing linker invocation?

Thanks,
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