[prev in list] [next in list] [prev in thread] [next in thread]
List: 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 () cs ! msu ! su>
Date: 2014-06-30 8:45:55
Message-ID: 53B123C3.6020307 () cs ! msu ! su
[Download RAW message or body]
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
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic