Linker changes for building eapol_test on OS X

Signed-off-by: Alan DeKok <aland@freeradius.org>
This commit is contained in:
Alan T. DeKok 2015-09-22 11:24:12 -04:00 committed by Jouni Malinen
parent b0c70f37b7
commit 939471b9eb
3 changed files with 9 additions and 1 deletions

View file

@ -54,7 +54,9 @@ else
ifdef CONFIG_LIBNL_TINY ifdef CONFIG_LIBNL_TINY
DRV_LIBS += -lnl-tiny DRV_LIBS += -lnl-tiny
else else
DRV_LIBS += -lnl ifndef CONFIG_OSX
DRV_LIBS += -lnl
endif
endif endif
ifdef CONFIG_LIBNL20 ifdef CONFIG_LIBNL20

View file

@ -131,12 +131,15 @@ endif
OBJS += ../src/utils/$(CONFIG_ELOOP).o OBJS += ../src/utils/$(CONFIG_ELOOP).o
OBJS_c += ../src/utils/$(CONFIG_ELOOP).o OBJS_c += ../src/utils/$(CONFIG_ELOOP).o
ifndef CONFIG_OSX
ifeq ($(CONFIG_ELOOP), eloop) ifeq ($(CONFIG_ELOOP), eloop)
# Using glibc < 2.17 requires -lrt for clock_gettime() # Using glibc < 2.17 requires -lrt for clock_gettime()
# OS X has an alternate implementation
LIBS += -lrt LIBS += -lrt
LIBS_c += -lrt LIBS_c += -lrt
LIBS_p += -lrt LIBS_p += -lrt
endif endif
endif
ifdef CONFIG_ELOOP_POLL ifdef CONFIG_ELOOP_POLL
CFLAGS += -DCONFIG_ELOOP_POLL CFLAGS += -DCONFIG_ELOOP_POLL

View file

@ -501,3 +501,6 @@ CONFIG_PEERKEY=y
# Enable CLI commands for FST testing # Enable CLI commands for FST testing
#CONFIG_FST_TEST=y #CONFIG_FST_TEST=y
# OS X builds. This is only for building eapol_test.
#CONFIG_OSX=y