Before this change, to compile with depends, and have your --enable-debug
-O0
be effective, you’d still need to do:
CONFIG_SITE="$PWD/depends/x86_64-pc-linux-gnu/share/config.site" ./configure --enable-debug CXXFLAGS="-O0"
This is because the depends config.site is setting -O1
via CXXFLAGS. For more info, see here https://github.com/bitcoin/bitcoin/blob/69b10212ea5370606c7a5aa500a70c36b4cbb58f/depends/hosts/linux.mk#L17-L18
This PR makes it so that you just have to run:
CONFIG_SITE="$PWD/depends/x86_64-pc-linux-gnu/share/config.site" ./configure --enable-debug