summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Van Parys2025-10-08 12:42:42 +0000
committerHauke Mehrtens2025-11-16 20:44:49 +0000
commit59ecc11ccf2bc33c6d3ecb41b2eab1c3f070dd1f (patch)
tree19a01da011192a3f6e96553b876d11a98b313653
parent8afdc500928f1145be436583154fe0ce2abc934f (diff)
downloadopenwrt-59ecc11ccf2bc33c6d3ecb41b2eab1c3f070dd1f.tar.gz
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 <matthias.vanparys@softathome.com> Link: https://github.com/openwrt/openwrt/pull/20345 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--package/network/services/hostapd/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/network/services/hostapd/Makefile b/package/network/services/hostapd/Makefile
index 8968f08029..3e14929352 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),)