Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

87.30. glog-0.7.1

Google's C++ logging library, with gflags for its command-line switches

0.7.1-2 · BSD-3-Clause · 1.3 SBU · 529.1 KiB, 20 files · 41_system, 367 of 1047 · ports/core/devlibs/glog

Homepage: https://github.com/google/glog

Depends on: cmake, ninja, gflags, libunwind-nongnu.

Required by: no port names it.

Sources: glog-0.7.1.tar.gz (178.4 KiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install glog'

build.sh:

mkdir build && cd build
cmake .. -G Ninja -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DBUILD_SHARED_LIBS=ON \
	-DBUILD_TESTING=OFF \
	-DWITH_GFLAGS=ON \
	-DCMAKE_REQUIRE_FIND_PACKAGE_gflags=ON \
	-DWITH_GTEST=OFF \
	-DWITH_UNWIND=libunwind \
	-DWITH_SYMBOLIZE=ON \
	-DWITH_TLS=ON \
	-DWITH_PKGCONFIG=ON \
	-DPRINT_UNSYMBOLIZED_STACK_TRACES=OFF
ninja
DESTDIR=$PKG ninja install

Libraries: libglog.so.

Directories: /usr/include/glog, /usr/lib/cmake/glog, /usr/share/glog, /usr/share/licenses/glog.