Skip to content

Commit 1f7fff2

Browse files
committed
depends: add docs for debug
1 parent dc66ff5 commit 1f7fff2

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

depends/README.packages

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,22 @@ These variables may be set to override or append their default values.
6565
$(package)_config_env
6666
$(package)_build_env
6767
$(package)_stage_env
68+
$(package)_build_opts
69+
$(package)_config_opts
6870

6971
The *_env variables are used to add environment variables to the respective
7072
commands.
7173

74+
Many variables respect a debug/release suffix as well, in order to use them for
75+
only the appropriate build config. For example:
76+
$(package)_cflags_release = -O3
77+
$(package)_cflags_i686_debug = -g
78+
$(package)_config_opts_release = --disable-debug
79+
80+
These will be used in addition to the options that do not specify
81+
debug/release. All builds are considered to be release unless DEBUG=1 is set by
82+
the user.
83+
7284
Other variables may be defined as needed.
7385

7486
Build commands:

depends/README.usage

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ FALLBACK_DOWNLOAD_PATH: If a source file can't be fetched, try here before givin
2222
NO_QT: Don't download/build/cache qt and its dependencies
2323
NO_WALLET: Don't download/build/cache libs needed to enable the wallet
2424
NO_UPNP: Don't download/build/cache packages needed for enabling upnp
25+
DEBUG: disable some optimizations and enable more runtime checking
2526

2627
If some packages are not built, for example 'make NO_WALLET=1', the appropriate
2728
options will be passed to bitcoin's configure. In this case, --disable-wallet.

0 commit comments

Comments
 (0)