From 1fd6db15d6eb7664dc2403302e0b089c52a13aa8 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Wed, 26 Feb 2020 11:31:25 +0800 Subject: [PATCH] build: set GOOS=linux by default --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 66e12ed56d..a5f5a4911e 100644 --- a/Makefile +++ b/Makefile @@ -51,6 +51,7 @@ ifdef LIBQEMUIO_PATH X_CGO_LDFLAGS := ${CGO_LDFLAGS_ENV} -laio -lqemuio -lpthread -L ${LIBQEMUIO_PATH}/src endif +export GOOS ?= linux export GO111MODULE:=on export CGO_CFLAGS = ${X_CGO_CFLAGS} export CGO_LDFLAGS = ${X_CGO_LDFLAGS}