Boost logo

Boost-Build :

From: Daniel James (daniel_at_[hidden])
Date: 2004-09-10 09:52:37

Vladimir Prus wrote:
>>libraries you want to link to may introduce
>>dependencies on other libraries.
> I believe that should be reflected in output of the xxx tool, for example:
> $ gtk-config --libs
> -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi
> -lXext -lX11 -lm
> Gtk depends on X11, and lists that library in the linker flags.
>>How does Boost.Build
>>handle this problem normally? Do you have to assume
>>standard locations for libraries your project depends
>>on? It seems like a huge problem that must have been
>>dealt with... or am I looking at this the wrong way?
> No, there's no standard solution for this problem.

This isn't portable, but I'm using the following with boost build v2:

alias gtk+-2.0 : : : :
<cflags>"`pkg-config --cflags gtk+-2.0`"
<linkflags>"`pkg-config --libs gtk+-2.0`"



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