|
Boost-Build : |
Subject: [Boost-build] How do I add system library path to Jamfile which is already in the ld search path?
From: Steve Lorimer (steve.lorimer_at_[hidden])
Date: 2014-06-29 21:37:44
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?
TIA
Steve
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