X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=package%2Fnetwork%2Fservices%2Fhostapd%2FMakefile;h=7024844d10cca297249389044192eac53647b870;hp=0c44a8b08d92e8c4959eab463a5632db9709f54b;hb=9bb50b35bbe198a9d2c4c51a3108dc6f336e6337;hpb=847145b0c220aef94137ea482648039fb814aa8b diff --git a/package/network/services/hostapd/Makefile b/package/network/services/hostapd/Makefile index 0c44a8b08d..7024844d10 100644 --- a/package/network/services/hostapd/Makefile +++ b/package/network/services/hostapd/Makefile @@ -225,7 +225,9 @@ TARGET_CPPFLAGS := \ TARGET_CFLAGS += -ffunction-sections -fdata-sections TARGET_LDFLAGS += -Wl,--gc-sections -TARGET_LDFLAGS += -lubox -lubus +ifeq ($(findstring supplicant,$(BUILD_VARIANT)),) + TARGET_LDFLAGS += -lubox -lubus +endif ifdef CONFIG_PACKAGE_kmod-mac80211 TARGET_LDFLAGS += -lm -lnl-tiny