aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2020-04-05 14:59:57 (GMT)
committerJouni Malinen <j@w1.fi>2020-04-05 15:53:59 (GMT)
commitd73bbae492a96c3a27ab7364b467e2ca18ae5573 (patch)
treeb196f5ae281eae6c7f3ea0999172d543152776f9 /wlantest
parentd4c3964117d5fe3a8c2b2f44c80ea807a3057ec3 (diff)
downloadhostap-d73bbae492a96c3a27ab7364b467e2ca18ae5573.zip
hostap-d73bbae492a96c3a27ab7364b467e2ca18ae5573.tar.gz
hostap-d73bbae492a96c3a27ab7364b467e2ca18ae5573.tar.bz2
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 <j@w1.fi>
Diffstat (limited to 'wlantest')
-rw-r--r--wlantest/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/wlantest/Makefile b/wlantest/Makefile
index 708d452..22ea646 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)