aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/gpgrt.texi20
1 files changed, 14 insertions, 6 deletions
diff --git a/doc/gpgrt.texi b/doc/gpgrt.texi
index 857973a..cc652f5 100644
--- a/doc/gpgrt.texi
+++ b/doc/gpgrt.texi
@@ -209,17 +209,25 @@ directory in which the header file is located to the compilers include
file search path (via the @option{-I} option).
However, the path to the include file is determined at the time the
-source is configured. To solve this problem, Libgpg-error ships with a small
-helper program @command{gpg-error-config} that knows the path to the
-include file and other configuration options. The options that need
-to be added to the compiler invocation at compile time are output by
-the @option{--cflags} option to @command{gpg-error-config}. The following
-example shows how it can be used at the command line:
+source is configured. To solve this problem, Libgpg-error ships with
+the small helper programs @command{gpg-error-config} and
+@command{gpgrt-config} which both know the path to the include file
+and other configuration options. The options that need to be added to
+the compiler invocation at compile time are output by the
+@option{--cflags} option to @command{gpg-error-config} (or
+@command{gpgrt-config}. The following example shows how it can be
+used at the command line:
@example
gcc -c foo.c $(gpg-error-config --cflags)
@end example
+or with the identical
+
+@example
+gcc -c foo.c $(gpgrt-config --cflags)
+@end example
+
Adding the output of @samp{gpg-error-config --cflags} to the
compiler’s command line will ensure that the compiler can find the
Libgpg-error header file.