Revert "core: enable 'NDEBUG' unless BR2_ENABLE_RUNTIME_DEBUG is set"
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 4 Jul 2021 11:33:50 +0000 (13:33 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 4 Jul 2021 19:38:25 +0000 (21:38 +0200)
commita1c7cff1a081765c082c196bd9e6c1e72ceee797
tree0d8a4c4da5344c6a47cc11e7c629f35a50d4999d
parent9273b0df81e09e4ee02488cb65c34fc1e0ede4e9
Revert "core: enable 'NDEBUG' unless BR2_ENABLE_RUNTIME_DEBUG is set"

Enabling -DNEBUG, although correct on the paper, causes a lot of
packages to fail to build because they explicitly require not building
with NDEBUG; they use assert() to check actual runtime errors and expect
it to not be elidded away (sometimes with side effects in the arguments
passed to assert().

This reverts commit 5a8c50fe05afacc3cbe8e7347e238da9f242fab0, as
discussed on the list:
    http://lists.busybox.net/pipermail/buildroot/2021-July/313646.html

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/Makefile.in