Boost logo

Boost-Build :

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


Vladimir Prus wrote:
>>Also,
>>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`"
;

Daniel

 


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