Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/mpd: implement BR2_ENABLE_RUNTIME_DEBUG
@ 2026-10-25 10:41 Andreas Ziegler
  2026-10-25 10:41 ` [Buildroot] [PATCH 2/2] package/mpd: update version to 0.24.17 Andreas Ziegler
  2026-10-25 18:00 ` [Buildroot] [PATCH 1/2] package/mpd: implement BR2_ENABLE_RUNTIME_DEBUG Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 4+ messages in thread
From: Andreas Ziegler @ 2026-10-25 10:41 UTC (permalink / raw)
  To: buildroot; +Cc: Andreas Ziegler

MPD started during version 0.19 (2015) to insert runtime debug
statements into the codebase. These are enclosed in preprocessor
instructions:

  #ifndef NDEBUG
  #endif

Fix the MPD build to observe the BR2_ENABLE_RUNTIME_DEBUG option. 

Signed-off-by: Andreas Ziegler <br025@umbiko.net>
---
This patch can safely be distributed to all maintainance branches.
---
 package/mpd/mpd.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/mpd/mpd.mk b/package/mpd/mpd.mk
index 4db0aee7cb..84a0f389e2 100644
--- a/package/mpd/mpd.mk
+++ b/package/mpd/mpd.mk
@@ -27,6 +27,10 @@ MPD_CONF_OPTS = \
 	-Dsidplay=disabled \
 	-Dsnapcast=false
 
+ifeq ($(BR2_ENABLE_RUNTIME_DEBUG),)
+MPD_CXXFLAGS = $(TARGET_CXXFLAGS) -DNDEBUG
+endif
+
 ifeq ($(BR2_PACKAGE_EXPAT),y)
 MPD_DEPENDENCIES += expat
 MPD_CONF_OPTS += -Dexpat=enabled
-- 
2.53.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-26  3:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-25 10:41 [Buildroot] [PATCH 1/2] package/mpd: implement BR2_ENABLE_RUNTIME_DEBUG Andreas Ziegler
2026-10-25 10:41 ` [Buildroot] [PATCH 2/2] package/mpd: update version to 0.24.17 Andreas Ziegler
2026-10-25 18:00 ` [Buildroot] [PATCH 1/2] package/mpd: implement BR2_ENABLE_RUNTIME_DEBUG Thomas Petazzoni via buildroot
2026-10-26  3:43   ` Andreas Ziegler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox