From: Matthias Van Parys Date: Wed, 8 Oct 2025 12:42:42 +0000 (+0200) Subject: hostapd: pass global linker options to CLI tools X-Git-Tag: v25.12.0-rc1~495 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F20345%2Fhead;p=thirdparty%2Fopenwrt.git hostapd: pass global linker options to CLI tools The CLI tools hostapd_cli and wpa_cli are compiled with `TARGET_LDFLAGS_C` rather than the standard `TARGET_LDFLAGS`. This variable is empty, leading to global linker options not being applied. Set this variable equal to `TARGET_LDFLAGS` right after the package.mk include to make sure global linker options are applied, but local options such as linking to crypto libraries are not. Signed-off-by: Matthias Van Parys Link: https://github.com/openwrt/openwrt/pull/20345 Signed-off-by: Hauke Mehrtens --- diff --git a/package/network/services/hostapd/Makefile b/package/network/services/hostapd/Makefile index 8968f080294..3e149293527 100644 --- a/package/network/services/hostapd/Makefile +++ b/package/network/services/hostapd/Makefile @@ -70,6 +70,8 @@ endif include $(INCLUDE_DIR)/package.mk +TARGET_LDFLAGS_C:=$(TARGET_LDFLAGS) + STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(CONFIG_WPA_MSG_MIN_PRIORITY) ifneq ($(CONFIG_DRIVER_11AC_SUPPORT),)