db: fix building with GCC 15.1
authorJohn Audia <[email protected]>
Sun, 1 Jun 2025 13:38:23 +0000 (09:38 -0400)
committerHannu Nyman <[email protected]>
Sun, 8 Jun 2025 08:39:42 +0000 (11:39 +0300)
Force the default C version to -std=gnu17.

Signed-off-by: John Audia <[email protected]>
libs/db/Makefile

index 9a44eace884ee9287a73ed227b504602b4def203..6e124c3ccbab4316fd099b19b64ccb53d8e4b8b0 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=db
 PKG_VERSION:=5.3.28
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://download.oracle.com/berkeley-db/
@@ -65,7 +65,7 @@ CONFIGURE_ARGS += \
        --disable-debug \
        $(if $(CONFIG_PACKAGE_libdb47xx),--enable-cxx,--disable-cxx)
 
-TARGET_CFLAGS += $(FPIC)
+TARGET_CFLAGS += $(FPIC) -std=gnu17
 
 define Build/Compile
        +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/build_unix \