Boost building

Thomas Trepl thomas at
Fri Mar 11 23:00:23 PST 2011

Hi Vladislav,

> Boost.IOStreams optionally requires zlib and libbz2.
> Alternatively you can use
> ./bjam -sNO_ZLIB=1 -sNO_BZIP2=1
> Otherwise compiling IOStreams fails.
> That's better explained at
hmmm, the boost page you mentioned says "... On most UNIX systems, it should 
not be necessary to set any of these variables, since the zlib and libbz2 
headers and binaries are already installed in locations where they will be 
found automatically. ..."
As gzip and bzip2 are installed both in chap 6 of LFS, they should be 
available on every system in usual locations. So there should not be a 
requirement to set either the {BZIP2,ZLIB}_LIBPATH and such variables nor the 
NO_{ZLIB,BZIP2} variables.
I think either the libs are available, then they should be found without any 
settings, or the libs are not installed, then i wonder what kind of OS that 
may be ;-)   Third option is to disable compression support in boost while the 
libs are there, but why should one do that?

> Also, Boost doesn't seem to create libboost.{so,a} (by default at least).
> It's more like libboost_*.{so,a}
I'll check that on a newly built 6.8-installation.



More information about the blfs-dev mailing list