From 7ab47481df6c4e992814c87c8f2191f74da00394 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Wed, 27 Jan 2010 16:00:47 +0100 Subject: [PATCH] doc: Fix pkg-config recommendation. Reported by Claudio Saavedra in . --- THANKS | 1 + doc/gnutls.texi | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/THANKS b/THANKS index 383a91cd7..49dae6afd 100644 --- a/THANKS +++ b/THANKS @@ -105,6 +105,7 @@ Jason Pettiss Ilari Liusvaara Steve Dispensa Vitaly Mayatskikh +Claudio Saavedra ---------------------------------------------------------------------- Copying and distribution of this file, with or without modification, diff --git a/doc/gnutls.texi b/doc/gnutls.texi index b1012b8de..e761c68e7 100644 --- a/doc/gnutls.texi +++ b/doc/gnutls.texi @@ -17,7 +17,7 @@ This manual is last updated @value{UPDATED} for version @value{VERSION} of GNU TLS. -Copyright @copyright{} 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +Copyright @copyright{} 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. @quotation Permission is granted to copy, distribute and/or modify this document @@ -2353,14 +2353,14 @@ source is configured. To solve this problem, the library uses the external package @command{pkg-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{pkg-config libgnutls}. The +the @option{--cflags} option to @command{pkg-config gnutls}. The following example shows how it can be used at the command line: @example -gcc -c foo.c `pkg-config libgnutls --cflags` +gcc -c foo.c `pkg-config gnutls --cflags` @end example -Adding the output of @samp{pkg-config libgnutls --cflags} to the +Adding the output of @samp{pkg-config gnutls --cflags} to the compilers command line will ensure that the compiler can find the @file{gnutls/gnutls.h} header file. @@ -2368,21 +2368,21 @@ A similar problem occurs when linking the program with the library. Again, the compiler has to find the library files. For this to work, the path to the library files has to be added to the library search path (via the @option{-L} option). For this, the option -@option{--libs} to @command{pkg-config libgnutls} can be used. For +@option{--libs} to @command{pkg-config gnutls} can be used. For convenience, this option also outputs all other options that are required to link the program with the libarary (for instance, the @samp{-ltasn1} option). The example shows how to link @file{foo.o} with the library to a program @command{foo}. @example -gcc -o foo foo.o `pkg-config libgnutls --libs` +gcc -o foo foo.o `pkg-config gnutls --libs` @end example Of course you can also combine both examples to a single command by specifying both options to @command{pkg-config}: @example -gcc -o foo foo.c `pkg-config libgnutls --cflags --libs` +gcc -o foo foo.c `pkg-config gnutls --cflags --libs` @end example @node Multi-threaded applications -- 2.11.4.GIT