Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
gpg-error-config [--version] [--prefix=dir] [--cflags] [--libs] [--exec-prefix=dir]
The gpg-error-config tool is used to determine the compiler and linker flags that should be used to compile and link programs that use the libgpg-error library.
The following options are supported:
--cflags Print the compiler flags that are necessary to compile a program using the specified library.
--exec-prefix=dir If specified, use dir instead of the exec installation prefix that the library was built with, when computing the output for the --cflags and --libs options. This option must be specified before any --libs or --cflags options.
--libs Print the linker flags that are necessary to link with the specified library.
--prefix=dir If specified, use dir instead of the installation prefix that the library was built with, when computing the output for the --cflags and --libs options. This option must be specified before any --libs or --cflags options. This option is also used for the exec prefix if the --exec-prefix option is not specified.
--version Print the currently installed version of the library on the standard output.
Example 1: Getting the libgpg-error library version
example% gpg-error-config --version
Example 2: Determining the libraries required to link with the libgpg-error library
example% gpg-error-config --libs
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
The following files are used by this application:
/usr/bin/gpg-error-config Executable for libgpg-error helper script
gpg-error(1), libgpg-error(3), pkg-config(1), attributes(5)