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 gpgme will go parse /usr/lib/pkgconfig/gpgme.pc. slay. πŸ—‚οΈ
  • --exists β€” tests whether the pkg-config file module.pc exists, and exits with success or error accordingly. simple as that, no cap.
  • --modversion β€” prints the currently installed version of module to the standard output. πŸ‘‘
  • --libs β€” prints the linker flags necessary to link a program using the module.
  • --cflags β€” prints the compiler flags necessary to compile a program using the module.
  • --static β€” modifies the output if you're linking statically instead of dynamically. different genre, different energy. πŸ”₯
  • --variable=VARNAME β€” outputs variable VARNAME from the module'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