Boost logo

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:


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

    $ locate libkrb

The above location is in my ld search path:

    $ ldconfig -v 2>/dev/null | grep /usr/lib/x86_64-linux-gnu:

Why does bjam not find the library in the system search path? How can I
tell where this library is?


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at