libradcli: fix build options
authorThibaut VARÈNE <[email protected]>
Fri, 13 Jun 2025 12:44:46 +0000 (14:44 +0200)
committerTianling Shen <[email protected]>
Mon, 23 Jun 2025 06:52:02 +0000 (14:52 +0800)
The provided Config.in was never sourced from the Makefile, making it
impossible to toggle TLS support.

This commit adds the necessary Makefile glue to fix this.

Also default to TLS disabled, as was the de-facto case since Config.in
was never sourced (and thus the default 'y' never enabled).

Signed-off-by: Thibaut VARÈNE <[email protected]>
libs/libradcli/Config.in
libs/libradcli/Makefile

index 35c3a223b41c26e8f7a6381893ce160af8881ab4..b43ff20e66cd29840b89b5e3d39b03cfd9bd436e 100644 (file)
@@ -5,6 +5,5 @@ menu "Configuration"
 
 config RADCLI_TLS
        bool "enable TLS support"
-       default y
 
 endmenu
index f3a7dc0e942386e5199dc9a19f833dc5ba2cd92b..6a6b303456dfeadd8f7b6bd04ea106909c47b398 100644 (file)
@@ -19,6 +19,8 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/radcli-$(PKG_VERSION)
 PKG_INSTALL:=1
 PKG_BUILD_PARALLEL:=1
 
+PKG_CONFIG_DEPENDS := CONFIG_RADCLI_TLS
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/libradcli
@@ -37,6 +39,10 @@ define Package/libradcli/decription
   compatible with it.
 endef
 
+define Package/libradcli/config
+        source "$(SOURCE)/Config.in"
+endef
+
 CONFIGURE_ARGS+= \
        --enable-legacy-compat