GPGRT-CONFIG(1)
β¨ NAME β¨
gpgrt-config β bestie's little helper script that tells you all about the gpg libraries you've got installed π
(also, hi, this is a GnuPG manual page, welcome π«Ά)
πΈ SYNOPSIS πΈ
gpgrt-config [options] [ module ]
π¦ DESCRIPTION π¦
okay so picture this: gpgrt-config is a script tool, right? and it's the one the autoconf macros that ship with gnupg software literally rely on β like AM_PATH_GPG_ERROR and AM_PATH_GPGME β to figure out the compiler and linker flags you need to compile and link programs that use a specific library (think libgpg-error or libgpgme, y'know, the usual suspects). π
the data source? gpgrt-config uses pkg-config .pc files. that's it, that's the vibe. iykyk.
and here's the cute part β apart from options, gpgrt-config takes a single argument, module, which is the basename (without the ".pc"-suffix, bestie, don't forget) of the pkg-config file it's gonna use as input. if you don't specify module at all, it just defaults to gpg-error. lowkey iconic of it. β¨
π OPTIONS π
gpgrt-config accepts the following options, and yes we're going through all of them:
--libdir=LIBDIRβ parent directory path of the pkgconfig file search path. like, for example,gpgrt-config --libdir=/usr/lib --exists gpgmewill go parse/usr/lib/pkgconfig/gpgme.pc. slay. ποΈ--existsβ tests whether the pkg-config filemodule.pcexists, and exits with success or error accordingly. simple as that, no cap.--modversionβ prints the currently installed version ofmoduleto the standard output. π--libsβ prints the linker flags necessary to link a program using themodule.--cflagsβ prints the compiler flags necessary to compile a program using themodule.--staticβ modifies the output if you're linking statically instead of dynamically. different genre, different energy. π₯--variable=VARNAMEβ outputs variableVARNAMEfrom themodule's pkg-config file.
π BUGS π
ngl, gpgrt-config tries to be compatible with pkg-config, and it tries to support cross build well β but it is not intended to be a replacement. read that again, bestie. it said what it said. π
fr fr, don't come for it expecting a full pkg-config glow-up. it's doing its best and its best is specified above. π
that's the whole page, mwah π β brought to you by Libgpg-error 1.58, dated 2026-07-20, and yeah, it's the GPGRT-CONFIG(1) manual, go forth and configure β¨π§
π¦ where this page comes from
- opensuse-leap 16.0: libgpg-error-devel 1.58-160000.2.1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
- opensuse-leap 16.0: libgpg-error-devel 1.58-160000.2.1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
- opensuse-leap 16.0: libgpg-error-devel 1.58-160000.2.1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
- opensuse-leap 16.0: libgpg-error-devel 1.58-160000.2.1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms