From: Jouni Malinen Date: Sun, 5 Apr 2020 14:59:57 +0000 (+0300) Subject: wlantest: Do not include rt library for OS X builds X-Git-Tag: hostap_2_10~1473 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d73bbae492a96c3a27ab7364b467e2ca18ae5573;p=thirdparty%2Fhostap.git wlantest: Do not include rt library for OS X builds That is not needed or available by default, so simply drop it from the build. Signed-off-by: Jouni Malinen --- diff --git a/wlantest/Makefile b/wlantest/Makefile index 708d4525d..22ea646c0 100644 --- a/wlantest/Makefile +++ b/wlantest/Makefile @@ -2,6 +2,8 @@ ALL=wlantest wlantest_cli test_vectors all: $(ALL) +UNAME := $(shell uname -s) + ifndef CC CC=gcc endif @@ -19,8 +21,10 @@ CFLAGS += -I. CFLAGS += -I../src CFLAGS += -I../src/utils +ifneq ($(UNAME),Darwin) # glibc < 2.17 needs -lrt for clock_gettime() LIBS += -lrt +endif ifndef LDO LDO=$(CC)