It was building before so maybe we should not change Makefile?
see hostapd-20131120/hostapd/Makefile and CONFIG_ELOOP maybe

Signed-off-by: Etienne CHAMPETIER <etienne.champet...@free.fr>
---
 package/network/services/hostapd/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/package/network/services/hostapd/Makefile 
b/package/network/services/hostapd/Makefile
index 05a74bb..b551314 100644
--- a/package/network/services/hostapd/Makefile
+++ b/package/network/services/hostapd/Makefile
@@ -241,8 +241,9 @@ TARGET_CPPFLAGS := \
        -D_GNU_SOURCE \
        $(if 
$(CONFIG_WPA_MSG_MIN_PRIORITY),-DCONFIG_MSG_MIN_PRIORITY=$(CONFIG_WPA_MSG_MIN_PRIORITY))
 
+LIBRT += $(if $(CONFIG_USE_EGLIBC),-lrt)
 TARGET_CFLAGS += -ffunction-sections -fdata-sections
-TARGET_LDFLAGS += -Wl,--gc-sections
+TARGET_LDFLAGS += -Wl,--gc-sections $(LIBRT)
 ifeq ($(findstring supplicant,$(BUILD_VARIANT)),)
   TARGET_LDFLAGS += -lubox -lubus
 endif
@@ -257,7 +258,8 @@ define Build/RunMake
                $(TARGET_CONFIGURE_OPTS) \
                $(DRIVER_MAKEOPTS) \
                LIBS="$(TARGET_LDFLAGS)" \
-               LIBS_c="" \
+               LIBS_c="$(LIBRT)" \
+               LIBS_h="$(LIBRT)" \
                BCHECK= \
                $(2)
 endef
-- 
1.8.3.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to