aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/Makefile
diff options
context:
space:
mode:
authorAlan T. DeKok <aland@freeradius.org>2015-09-22 15:24:12 (GMT)
committerJouni Malinen <j@w1.fi>2015-09-25 16:32:14 (GMT)
commit939471b9ebdc549b453e23612627fe6bc9afde1d (patch)
treeb1cd1178c0f023f653f861a9ad6615f867881b61 /wpa_supplicant/Makefile
parentb0c70f37b783998e5a4e4241f3fc55839514fa65 (diff)
downloadhostap-939471b9ebdc549b453e23612627fe6bc9afde1d.zip
hostap-939471b9ebdc549b453e23612627fe6bc9afde1d.tar.gz
hostap-939471b9ebdc549b453e23612627fe6bc9afde1d.tar.bz2
Linker changes for building eapol_test on OS X
Signed-off-by: Alan DeKok <aland@freeradius.org>
Diffstat (limited to 'wpa_supplicant/Makefile')
-rw-r--r--wpa_supplicant/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 1597412..de3c87f 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -131,12 +131,15 @@ endif
OBJS += ../src/utils/$(CONFIG_ELOOP).o
OBJS_c += ../src/utils/$(CONFIG_ELOOP).o
+ifndef CONFIG_OSX
ifeq ($(CONFIG_ELOOP), eloop)
# Using glibc < 2.17 requires -lrt for clock_gettime()
+# OS X has an alternate implementation
LIBS += -lrt
LIBS_c += -lrt
LIBS_p += -lrt
endif
+endif
ifdef CONFIG_ELOOP_POLL
CFLAGS += -DCONFIG_ELOOP_POLL