Commit 52599774 authored by Mike Hibler's avatar Mike Hibler

Clang 6.0 hack for FreeBSD 11.2.

parent a66d9a3e
......@@ -26,9 +26,11 @@ OBJDIR = @top_builddir@
SUBDIR = $(subst $(TESTBED_SRCDIR)/,,$(SRCDIR))
SYSTEM := $(shell $(SRCDIR)/../../../tmcc/osstuff.sh -o)
IPERFVERSION = 2.0.2
ifeq ($(SYSTEM),Linux)
OSTAG=$(shell $(SRCDIR)/../../../tmcc/osstuff.sh -t)
ifeq ($(SYSTEM),Linux)
# NB: the 2.0.10 patch is still subtly broken, so we continue to keep
# the 2.0.2 patch alive. Add exceptions in the filter case below if you
# really want to use the 2.0.10 patch.
......@@ -95,7 +97,16 @@ client-install: $(ITARGETS)
# Note: GNU make wants to pass options in MAKEFLAGS (w) that are incompatible
# with BSD make. So we just force configure to assume/use gmake for BSD.
#
# Note 2: Starting with FreeBSD 11.2 (actually clang 6.0) the conftest.c files
# generated by the default configure script ("checking 3rd argument of accept")
# will not compile. We need to create a newer version of configure to solve this.
# We could probably do this on all OSes, but I don't want to test all OSes...
#
config.status:
ifneq (,$(filter $(OSTAG),freebsd11 freebsd12))
cd iperf-$(IPERFVERSION) && autoconf
endif
MAKE=$(MAKE) iperf-$(IPERFVERSION)/configure $(CONFIG_ARGS)
iperf-$(IPERFVERSION):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment