]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wlantest: Do not include rt library for OS X builds
authorJouni Malinen <j@w1.fi>
Sun, 5 Apr 2020 14:59:57 +0000 (17:59 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 5 Apr 2020 15:53:59 +0000 (18:53 +0300)
That is not needed or available by default, so simply drop it from the
build.

Signed-off-by: Jouni Malinen <j@w1.fi>
wlantest/Makefile

index 708d4525d851e7c7f931f02b75e7cf191c5d1e86..22ea646c09266c508c96dc127bc2bbc5f48d8d7a 100644 (file)
@@ -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)