From 9bb50b35bbe198a9d2c4c51a3108dc6f336e6337 Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 18 Mar 2013 16:11:32 +0000 Subject: hostapd: fix build errors on supplicant-only builds git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36085 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/network/services/hostapd/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'package/network/services/hostapd/Makefile') diff --git a/package/network/services/hostapd/Makefile b/package/network/services/hostapd/Makefile index 0c44a8b08..7024844d1 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 -- cgit v1.2.3