diff options
author | Werner Koch <wk@gnupg.org> | 2017-11-27 15:40:01 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-11-27 15:44:25 +0100 |
commit | 97b0881216af24f2a46c11650e23691cff9cb12a (patch) | |
tree | 03c888d07bcb5010c7827dd73a23e290e1cfcc77 /doc | |
parent | 6e8a7a87e00844b0efb449516ddf3aaa0b8dc750 (diff) | |
download | libgpg-error-97b0881216af24f2a46c11650e23691cff9cb12a.tar.gz |
core: Install new files gpgrt.m4 and gpgrt-config.
* src/gpgrt.m4: New. Bascially a copy of libgpg-error.m4
* src/gpg-error-config.in: Decide which name to print.
* src/Makefile.am (nodist_bin_SCRIPTS): Add gpgrt-config.
(m4data_DATA): Add gpgrt.m4
(EXTRA_DIST): Add gpgrt.m4.
(BUILT_SOURCES): Add gpgrt-config.
(CLEANFILES): Add gpgrt-config.
(gpgrt-config): Create from gpg-error-config.
--
These files can be used instead of gpg-error-config or gpg-error.m4.
The hope is that providing them early will ease an eventual migration
from libgpg-error to libgpgrt easier.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gpgrt.texi | 20 |
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. |