[Buildroot] [PATCH 1/1] package/tor: unset the NDEBUG flag
Bernd Kuhls
bernd.kuhls at t-online.de
Sun Jun 20 16:20:30 UTC 2021
For details see:
https://gitlab.torproject.org/tpo/core/tor/-/blob/main/src/lib/log/util_bug.h#L56
Fixes:
http://autobuild.buildroot.net/results/aab/aabc7fd3093b1a7f08de8d06a1875eb5d231be4c/
Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
---
package/tor/tor.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/tor/tor.mk b/package/tor/tor.mk
index e0db278fb9..fca272f836 100644
--- a/package/tor/tor.mk
+++ b/package/tor/tor.mk
@@ -62,6 +62,9 @@ endif
# uses gnu extensions
TOR_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
+# tor does not support building with NDEBUG enabled
+TOR_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -UNDEBUG"
+
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
TOR_CONF_ENV += LIBS=-latomic
endif
--
2.30.2
More information about the buildroot
mailing list