gpgrt-config(1)

gpgrt-config1

Helper script to get information about the installed version of gpg libraries

Usage

gpgrt-config [options] [module]

Overview

gpgrt-config is a script tool that is used by the autoconf macros shipped with gnupg software (e.g., AM_PATH_GPG_ERROR and AM_PATH_GPGME) to determine the compiler and linker flags that should be used to compile and link programs that use the specific library (e.g., libgpg-error or libgpgme). gpgrt-config uses pkg-config .pc files as data source.

Apart from options gpgrt-config accepts a single argument module specifying the basename (without the ".pc"-suffix) of the pkg-config file to be used as input. module will default to gpg-error if it is not specified.

Options

gpgrt-config accepts the following options:

--libdir=LIBDIR

Parent directory path of pkgconfig file search path. e.g., ‘gpgrt-config --libdir=/usr/lib --exists gpgme’ will parse ‘/usr/lib/pkgconfig/gpgme.pc’.

--exists

Test whether the pkg-config file ‘module.pc’ exist and exits with success or error accordingly.

--modversion

Print the currently installed version of module on the standard output.

--libs

Print the linker flags that are necessary to link a program using the module.

--cflags

Print the compiler flags that are necessary to compile a program using the module.

--static

Modifies output if linking statically instead of dynamically.

--variable=VARNAME

Output variable VARNAME from the module's pkg-config file.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 13
  4. Arch

--exists since Debian 13 (Trixie); --libdir since Debian 13 (Trixie); --modversion since Debian 13 (Trixie); --static since Debian 13 (Trixie); --variable since Debian 13 (Trixie).

--exec-prefix until Debian 11 (Bullseye); --mt until Debian 11 (Bullseye); --prefix until Debian 11 (Bullseye); --version until Debian 11 (Bullseye).

Bugs

gpgrt-config is tried to be compatible to pkg-config, and to support cross build well, but it is not intended to be a replacement.

From libgpg-error 1.61-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.