diff --git a/Makefile b/Makefile index b2bea5d85b29..0ae9314ec7aa 100644 --- a/Makefile +++ b/Makefile @@ -1670,7 +1670,7 @@ $(testbins): bin/%: bin/%.d | bin/prereqs $(SUBMODULES_TARGET) @echo go test -c $($*-package) bin/prereqs -bin-name=$* -test $($*-package) > $@.d.tmp mv -f $@.d.tmp $@.d - $(xgo) test $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LINKFLAGS)' -c -o $@ $($*-package) + $(xgo) test $(GOTESTFLAGS) $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LINKFLAGS)' -c -o $@ $($*-package) bin/prereqs: ./pkg/cmd/prereqs/*.go | bin/.submodules-initialized @echo go install -v ./pkg/cmd/prereqs