softethervpn: use GNU C17 for the stable 4.x source

GCC 15 defaults to GNU C23, where bool is a reserved keyword.
SoftEther VPN Stable 4.38 defines bool as an unsigned int, and
uses its size in configuration storage and socket option calls.

Set GNU C17 for the target and host builds to preserve the 4.x
type and API. The development branch's switch to stdbool.h
changes the type width and is a larger compatibility change
for this stable release.

Assisted-by: LLM
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Hauke Mehrtens authored and Hannu Nyman committed 2026-11-29 10:37:13 +02:00
1 parent a214e3e3e7
commit bb3258c66a
1 file changed
+3 -2
+3 -2
View File
@@ -12,7 +12,7 @@ PKG_NAME:=softethervpn
PKG_REALVERSION:=4.38-9760
PKG_VERSION:=$(word 1,$(subst -, ,$(PKG_REALVERSION)))
PKG_VERREL:=rtm
PKG_RELEASE:=4
PKG_RELEASE:=5
PKG_SOURCE:=softether-src-v$(PKG_REALVERSION)-$(PKG_VERREL).tar.gz
PKG_SOURCE_URL:=https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v$(PKG_REALVERSION)-$(PKG_VERREL)
@@ -44,7 +44,7 @@ HOST_MAKE_FLAGS += \
define Host/Configure
endef
HOST_CFLAGS += $(if $(CONFIG_HOST_OS_MACOS),-Wno-implicit-function-declaration,)
HOST_CFLAGS += -std=gnu17 $(if $(CONFIG_HOST_OS_MACOS),-Wno-implicit-function-declaration,)
define Host/Compile
# Build hamcorebuilder using host compiler and let it generate
@@ -62,6 +62,7 @@ endef
# Tune CFLAGS for target
TARGET_CFLAGS += \
-std=gnu17 \
$(if $(CONFIG_OPENSSL_WITH_SSL3),,-DSSL_OP_NO_SSLv3) \
$(if $(filter mips mipsel,$(ARCH)),-minterlink-mips16)