db: fix building with GCC 15.1

Force the default C version to -std=gnu17.

Signed-off-by: John Audia <therealgraysky@proton.me>
This commit is contained in:
John Audia
2025-06-01 09:38:23 -04:00
committed by Hannu Nyman
parent 586607cefa
commit 1e1feadead

View 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 \