From: Vladimír Čunát Date: Wed, 7 Dec 2016 12:12:43 +0000 (+0100) Subject: build docs: mention -DNDEBUG, to be sure X-Git-Tag: v1.2.0-rc1~64^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05dab11b618b11f30ca30907b6590dc8fd39e66e;p=thirdparty%2Fknot-resolver.git build docs: mention -DNDEBUG, to be sure --- diff --git a/doc/build.rst b/doc/build.rst index 7ebd6a3e0..d60ddeebb 100644 --- a/doc/build.rst +++ b/doc/build.rst @@ -100,7 +100,9 @@ When you have all the dependencies ready, you can build and install. $ make PREFIX="/usr/local" $ make install PREFIX="/usr/local" -.. note:: Always build with ``PREFIX`` if you want to install, as it is hardcoded in the executable for module search path. If you build the binary with ``-DNLOGDEBUG``, verbose logging will be disabled as well. +.. note:: Always build with ``PREFIX`` if you want to install, as it is hardcoded in the executable for module search path. + Production code should be compiled with ``-DNDEBUG``. + If you build the binary with ``-DNLOGDEBUG``, verbose logging will be disabled as well. Alternatively you can build only specific parts of the project, i.e. ``library``.