From ae978739742b4bd82827716ca29c8dde3a0b0dd6 Mon Sep 17 00:00:00 2001 From: Til Kaiser Date: Tue, 6 Jan 2026 15:52:45 +0100 Subject: [PATCH] madplay: fix compilation with GCC 15 Define __GNU_LIBRARY__ for a proper getopt declaration when building with GCC 15. Signed-off-by: Til Kaiser --- sound/madplay/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/madplay/Makefile b/sound/madplay/Makefile index 15a65800f7..c3cc8e3a4e 100644 --- a/sound/madplay/Makefile +++ b/sound/madplay/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=madplay PKG_VERSION:=0.15.2b -PKG_RELEASE:=10 +PKG_RELEASE:=11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/mad \ @@ -53,6 +53,8 @@ CONFIGURE_ARGS += \ CONFIGURE_VARS += \ lt_prog_compiler_pic="$(FPIC)" +TARGET_CFLAGS += -D__GNU_LIBRARY__ + MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS)" define Package/madplay/install