1GPGRT-CONFIG(1) GnuPG GPGRT-CONFIG(1)
2
3
4
6 gpgrt-config - Helper script to get information about the installed
7 version of gpg libraries
8
10 gpgrt-config [options] [ module ]
11
12
14 gpgrt-config is a script tool that is used by the autoconf macros
15 shipped with gnupg software (e.g. AM_PATH_GPG_ERROR and AM_PATH_GPGME)
16 to determine the compiler and linker flags that should be used to com‐
17 pile and link programs that use the specific library (e.g. libgpg-error
18 or libgpgme). gpgrt-config uses pkg-config .pc files as data source.
19
20 Apart from options gpgrt-config accepts a single argument module speci‐
21 fying the basename (without the ".pc"-suffix) of the pkg-config file to
22 be used as input. module will default to gpg-error if it is not speci‐
23 fied.
24
25
27 gpgrt-config accepts the following options:
28
29
30 --libdir=LIBDIR
31 Parent directory path of pkgconfig file search path. e.g. ‘gp‐
32 grt-config --libdir=/usr/lib --exists gpgme’ will parse
33 ‘/usr/lib/pkgconfig/gpgme.pc’.
34
35
36 --exists
37 Test whether the pkg-config file ‘module.pc’ exist and exits
38 with success or error accordingly.
39
40
41 --modversion
42 Print the currently installed version of module on the standard
43 output.
44
45
46 --libs Print the linker flags that are necessary to link a program us‐
47 ing the module.
48
49
50 --cflags
51 Print the compiler flags that are necessary to compile a program
52 using the module.
53
54
55 --static
56 Modifies output if linking statically instead of dynamically.
57
58
59 --variable=VARNAME
60 Output variable VARNAME from the module's pkg-config file.
61
62
64 gpgrt-config is tried to be compatible to pkg-config, and to support
65 cross build well, but it is not intended to be a replacement.
66
67
68
69
70Libgpg-error 1.47-unknown 2023-07-20 GPGRT-CONFIG(1)