diff options
author | Alan T. DeKok <aland@freeradius.org> | 2015-09-22 11:24:12 -0400 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-09-25 19:32:14 +0300 |
commit | 939471b9ebdc549b453e23612627fe6bc9afde1d (patch) | |
tree | b1cd1178c0f023f653f861a9ad6615f867881b61 | |
parent | b0c70f37b783998e5a4e4241f3fc55839514fa65 (diff) | |
download | hostap-939471b9ebdc549b453e23612627fe6bc9afde1d.tar.gz |
Linker changes for building eapol_test on OS X
Signed-off-by: Alan DeKok <aland@freeradius.org>
-rw-r--r-- | src/drivers/drivers.mak | 4 | ||||
-rw-r--r-- | wpa_supplicant/Makefile | 3 | ||||
-rw-r--r-- | wpa_supplicant/defconfig | 3 |
3 files changed, 9 insertions, 1 deletions
diff --git a/src/drivers/drivers.mak b/src/drivers/drivers.mak index 943407875..3dd43c738 100644 --- a/src/drivers/drivers.mak +++ b/src/drivers/drivers.mak @@ -54,7 +54,9 @@ else ifdef CONFIG_LIBNL_TINY DRV_LIBS += -lnl-tiny else - DRV_LIBS += -lnl + ifndef CONFIG_OSX + DRV_LIBS += -lnl + endif endif ifdef CONFIG_LIBNL20 diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 1597412e2..de3c87fd9 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 diff --git a/wpa_supplicant/defconfig b/wpa_supplicant/defconfig index d714a691d..01a8c2ccb 100644 --- a/wpa_supplicant/defconfig +++ b/wpa_supplicant/defconfig @@ -501,3 +501,6 @@ CONFIG_PEERKEY=y # Enable CLI commands for FST testing #CONFIG_FST_TEST=y + +# OS X builds. This is only for building eapol_test. +#CONFIG_OSX=y |