Linker changes for building eapol_test on OS X
authorAlan T. DeKok <aland@freeradius.org>
Tue, 22 Sep 2015 15:24:12 +0000 (11:24 -0400)
committerJouni Malinen <j@w1.fi>
Fri, 25 Sep 2015 16:32:14 +0000 (19:32 +0300)
Signed-off-by: Alan DeKok <aland@freeradius.org>
src/drivers/drivers.mak
wpa_supplicant/Makefile
wpa_supplicant/defconfig

index 9434078..3dd43c7 100644 (file)
@@ -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
index 1597412..de3c87f 100644 (file)
@@ -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
index d714a69..01a8c2c 100644 (file)
@@ -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