I am having issues while building the Boost Library on Ubuntu 16.04 LTS with gcc-8.
Currently I need to build both the Debug and Release built libraries.
Here are the commands I have used to build the library for debug build:
$ ./bootstrap.sh --with-libraries=all --with-python-version=3.5 --with-icu="/usr/include/x86_64-linux-gnu/"
###################
# For Debug build #
###################
$ ./b2 toolset=gcc-8 cxxflags="-std=c++17" variant=debug
#####################
# For Release build #
#####################
$ ./b2 toolset=gcc-8 cxxflags="-std=c++17" variant=release
The issue is that even with variant specified as debug
or release
, the build builds the libraries with the same names.
Each build step overwrites the libraries built by the previous command.
How can I get the Debug libraries with probable suffix -d
as per the documentation mentioned here?
I also tried to look into the boost-build
reference mentioned here.
But I am getting a Error 404 page is not found.
The old reference for Boost Build as found here also does not seems to have the necessary details of building the boost libraries in both debug and release modes.
Thanks in advance.
CMAKE_DEBUG_POSTFIX
, I tried this solution earlier but it involves changing the library name dependencies in all of the repositories which have dependencies on boost libraries instead of just specifying the base-names of the libraries. And this quickly becomes difficult when one wants to have cross-platform support also. – Scalise