From 7af0fad1bac42f81093b382209b417b9a84d0833 Mon Sep 17 00:00:00 2001 From: Michael Wojciechowski Date: Thu, 6 Oct 2005 17:22:07 +0000 Subject: [PATCH] Corrected information about building release and debug versions using autotools. --- docs/manual.rst | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/docs/manual.rst b/docs/manual.rst index 5708b3c30..80b316f9a 100755 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -289,6 +289,25 @@ Another possible source of problems may be if the path to your libtorrent directory contains spaces. Make sure you either rename the directories with spaces in their names to remove the spaces or move the libtorrent directory. +Creating a debug build +~~~~~~~~~~~~~~~~~~~~~~ + +To tell configure to build a debug version (with debug info, asserts +and invariant checks enabled), you have to run the configure script +with the following option:: + + ./configure --enable-debug=yes + +Creating a release build +~~~~~~~~~~~~~~~~~~~~~~~~ + +To tell the configure to build a release version (without debug info, +asserts and invariant checks), you have to run the configure script +with the following option:: + + ./configure --enable-debug=no + +The above option make use of -DNDEBUG, which is used throughout libtorrent. Step 2: Building libtorrent ~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -296,17 +315,9 @@ Step 2: Building libtorrent Once the configure script is run successfully, you just type ``make`` and libtorrent, the examples and the tests will be built. -When libtorrent is built it may be a good idea to run the test, you do this +When libtorrent is built it may be a good idea to run the tests, you do this my running ``make check``. -If you want to build a release version (without debug info, asserts and -invariant checks), you have to rerun the configure script and rebuild, like this:: - - ./configure --disable-debug - make clean - make - - Building with other build systems ---------------------------------