JaeJun LEE
JaeJun LEE

Reputation: 1334

Selectively build boost libraries

Is there any way to install specific libraries along with it's dependent libraries?

For example, I want to use only Asio in Boost and I want to install only Asio and required libraries on which Asio is dependent(it seems that boost/system is).

Is there any solution?

Thanks.

Upvotes: 1

Views: 573

Answers (2)

GrafikRobot
GrafikRobot

Reputation: 3059

You can use the BCP tool that's part of the distribution to copy specific libraries, dependencies, and do a few other tasks for dealing with subparts of Boost.

Upvotes: 2

2785528
2785528

Reputation: 5566

It is possible to copy the desired libraries (and not copy any others) into a directory you wish to use, then link to this limited subset of the full boost library.

For example, I have an application in which I prefer to use the archive libs. To avoid the .so's (which the linker would choose if available), my build has a simple rule to trigger

 cp  /usr/local/lib/libboost*.a  ../

At link time, I specify my dir in a -L.

Upvotes: 0

Related Questions