The Abseil-cpp package contains a series of libraries designed to augment the C++ standard library.
This package is known to build and work properly using an LFS 13.1 platform.
Download (HTTP): https://github.com/abseil/abseil-cpp/releases/download/20260526.0/abseil-cpp-20260526.0.tar.gz
Download MD5 sum: a8a8a3de136df18dbe87b47c174e7c16
Download size: 2.3 MB
Estimated disk space required: 35 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.