From 4b69c3cbaccd51b7ea719e7bd756d680e825988d Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 7 Mar 2019 20:36:03 +0100 Subject: pkg/runtest: make tests pass on freebsd The problem is stupid: should be included as on freebsd. Pass actual host OS to executor build as HOSTGOOS and use it to figure out how we should include this header. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index af304033d..8b6a5f919 100644 --- a/Makefile +++ b/Makefile @@ -122,7 +122,8 @@ ifneq ("$(NO_CROSS_COMPILER)", "") else mkdir -p ./bin/$(TARGETOS)_$(TARGETARCH) $(CC) -o ./bin/$(TARGETOS)_$(TARGETARCH)/syz-executor$(EXE) executor/executor.cc \ - $(ADDCFLAGS) $(CFLAGS) -DGOOS_$(TARGETOS)=1 -DGOARCH_$(TARGETARCH)=1 -DGIT_REVISION=\"$(REV)\" + $(ADDCFLAGS) $(CFLAGS) -DGOOS_$(TARGETOS)=1 -DGOARCH_$(TARGETARCH)=1 \ + -DHOSTGOOS_$(HOSTOS)=1 -DGIT_REVISION=\"$(REV)\" endif endif -- cgit mrf-deployment