]> git.ipfire.org Git - thirdparty/vectorscan.git/commit
cmake: add PKGCONFIG_EXTRA_LIBS option for pkg-config (#361)
authorTomer Lev <me@tomerlev.com>
Thu, 12 Feb 2026 13:23:09 +0000 (15:23 +0200)
committerGitHub <noreply@github.com>
Thu, 12 Feb 2026 13:23:09 +0000 (15:23 +0200)
commitf3791575bbddd887046aa510193bea2cfacbb2fa
tree5c8e78835a5c80c02eece6552e0a499bc365dbcc
parentbe70749992094f4e845a8fe7f901d00407779b7d
cmake: add PKGCONFIG_EXTRA_LIBS option for pkg-config (#361)

Add a CMake cache variable to pass arbitrary flags to the pkg-config
Libs line. This enables CGO builds using GCC (not g++) to link correctly
by allowing users to specify C++ stdlib dependencies.

Usage: cmake -DPKGCONFIG_EXTRA_LIBS="-lstdc++ -lm" ...
CMakeLists.txt
chimera/libch.pc.in
libhs.pc.in