The Abseil-cpp package contains a series of libraries designed to augment the C++ standard library.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://github.com/abseil/abseil-cpp/releases/download/20250814.1/abseil-cpp-20250814.1.tar.gz
Download MD5 sum: d4d3c25f78e28d61ad83e54cd1116933
Download size: 2.1 MB
Estimated disk space required: 24 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.