Boost logo

Boost-Build :

Subject: Re: [Boost-build] recursive libs not automatically linked in (anymore)
From: Vladimir Prus (ghost_at_[hidden])
Date: 2012-03-21 01:07:38

On 21/03/12 05:20, Andrej van der Zee wrote:
> Hi,
> I think about half a year ago I updated my Ubuntu distribution and
> found myself adding all recursive libraries explicitly to the build
> targets. Is there a linker-option that I should set in bjam to make it
> automatically include recursive libraries? My Jamfiles became kind of
> bloated like below:
> lib rumble_cgi
> : [ glob *.cpp : main_cgi.cpp main_test.cpp ]
> /site-config//xml++
> /site-config//xml2
> /site-config//glibmm-2.4
> /site-config//glib-2.0
> /site-config//cgicc
> /site-config//boost_iostreams
> /site-config//boost_system
> /site-config//boost_filesystem
> /libs/mysql//rumble_mysql
> :
> ;



Ubuntu has switched to using -as-needed by default, which means that if you link to library A which uses
libraries B, you no longer get access to B's symbols -- unless you link to B specifically.


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