From 9548b627bab86b8f9d106a37f9d01a461fc283b3 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 31 Aug 2017 15:06:48 +0800 Subject: [PATCH] =?UTF-8?q?gluster=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crossbuild.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crossbuild.sh b/crossbuild.sh index a1c553324..7b52cb966 100644 --- a/crossbuild.sh +++ b/crossbuild.sh @@ -1,2 +1,8 @@ #!/bin/bash -./cbuild gluster_0.6 src/gapp/gluster/gluster.go \ No newline at end of file +# 生成交叉编译的可执行文件cbuild +go build src/gapp/cbuild/cbuild.go +# 开始交叉编译gluster +#./cbuild src/gapp/gluster/gluster.go --name=gluster --version=0.6 --arch=386,amd64 --os=linux,windows,darwin,freebsd,openbsd +./cbuild src/gapp/gluster/gluster.go --name=gluster --version=0.6 --arch=386,amd64 --os=linux,windows +# 删除临时可文件 +rm cbuild \ No newline at end of file