The Abseil-cpp package contains a series of libraries designed to augment the C++ standard library.
This version of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable version of the System V books.
Download (HTTP): https://github.com/abseil/abseil-cpp/releases/download/20260107.1/abseil-cpp-20260107.1.tar.gz
Download MD5 sum: d032877f03483884299c50f527f3983e
Download size: 2.2 MB
Estimated disk space required: 34 MB
Estimated build time: 0.2 SBU (Using parallelism=4)
Install Abseil-cpp by running the following commands:
mkdir build &&
cd build &&
cmake -D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_SKIP_INSTALL_RPATH=ON \
-D ABSL_PROPAGATE_CXX_STD=ON \
-D BUILD_SHARED_LIBS=ON \
-G Ninja .. &&
ninja
This package does not come with a test suite.
Now, as the root user:
ninja install
-D
CMAKE_SKIP_INSTALL_RPATH=ON: This switch makes
cmake remove
hardcoded library search paths (rpath) when installing a binary
executable file or a shared library. This package does not need
rpath once it's installed into the standard location, and rpath may
sometimes cause unwanted effects or even security issues.
-D
ABSL_PROPAGATE_CXX_STD=ON: This parameter enables
propagating C++ features to targets that link to this package's
libraries.
-D BUILD_SHARED_LIBS=ON:
This parameter builds shared versions of the libraries provided by
this package instead of static libraries.