From: Sree Harsha Totakura Date: Fri, 24 May 2013 13:15:32 +0000 (+0000) Subject: - compile with CPPFLAGS and LDFLAGS; gcc doesn't take them automatically X-Git-Tag: initial-import-from-subversion-38251~8910 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d71637007a11ed352bc82590fa6899faba3802d0;p=oweals%2Fgnunet.git - compile with CPPFLAGS and LDFLAGS; gcc doesn't take them automatically --- diff --git a/doc/gnunet-c-tutorial.pdf b/doc/gnunet-c-tutorial.pdf index 575451590..1b5af84c6 100644 Binary files a/doc/gnunet-c-tutorial.pdf and b/doc/gnunet-c-tutorial.pdf differ diff --git a/doc/gnunet-c-tutorial.tex b/doc/gnunet-c-tutorial.tex index 27258ac8d..8ad4d3019 100644 --- a/doc/gnunet-c-tutorial.tex +++ b/doc/gnunet-c-tutorial.tex @@ -422,7 +422,7 @@ The source code for the above listing can be found at \begin{lstlisting} $ export CPPFLAGS="-I/path/to/gnunet/headers" $ export LDFLAGS="-L/path/to/gnunet/libraries" -$ gcc -o testbed-test testbed_test.c -lgnunettestbed -lgnunetdht -lgnunetutil +$ gcc $CPPFLAGS $LDFLAGS -o testbed-test testbed_test.c -lgnunettestbed -lgnunetdht -lgnunetutil \end{lstlisting} The \texttt{CPPFLAGS} and \texttt{LDFLAGS} are necessary if GNUnet is installed into a different directory other than \texttt{/usr/local}.