hostapd: pass global linker options to CLI tools
authorMatthias Van Parys <[email protected]>
Wed, 8 Oct 2025 12:42:42 +0000 (14:42 +0200)
committerHauke Mehrtens <[email protected]>
Sun, 16 Nov 2025 20:44:49 +0000 (21:44 +0100)
commit59ecc11ccf2bc33c6d3ecb41b2eab1c3f070dd1f
tree19a01da011192a3f6e96553b876d11a98b313653
parent8afdc500928f1145be436583154fe0ce2abc934f
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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20345
Signed-off-by: Hauke Mehrtens <[email protected]>
package/network/services/hostapd/Makefile