[Buildroot] [PATCHv4 02/16] core: enable 'NDEBUG' unless BR2_ENABLE_RUNTIME_DEBUG is set
D. Olsson
hi at senzilla.io
Sat Jun 5 16:50:46 UTC 2021
Hi Thomas, Yann, all,
> On 2021-06-01 16:34 +0200, Thomas De Schampheleire spake thusly:
> +ifeq ($(BR2_ENABLE_RUNTIME_DEBUG),)
> +TARGET_DEBUGGING += -DNDEBUG
This broke bitcoin builds. I haven't looked deeply into the
details, but it is my understanding that NDEBUG changes the
behaviour of assert() in a way that Bitcoin explicitly does
not support.
See: https://github.com/bitcoin/bitcoin/blob/707ba8692b0013f4824dc3c2ea6554ccad5d20c2/src/compat/assumptions.h#L13
I don't know if there is a workaround for this, but I have a
feeling that passing NDEBUG for all packages might not be a
good idea?
---
D. Olsson
PGP: 8204A8CD
More information about the buildroot
mailing list