From 052c3e2cba5b637863cb4f63f8c863cba856711f Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 3 Apr 2016 11:50:37 +1200 Subject: [PATCH] nmdc-log-service/build: build with -a --- src/nmdc-log-service/build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nmdc-log-service/build.sh b/src/nmdc-log-service/build.sh index 97e0c43..f74e2bf 100644 --- a/src/nmdc-log-service/build.sh +++ b/src/nmdc-log-service/build.sh @@ -24,22 +24,22 @@ main() { fi echo "Building win64..." - GOARCH=amd64 GOOS=windows go build -ldflags -s -o nmdc-log-service.exe + GOARCH=amd64 GOOS=windows go build -a -ldflags -s -o nmdc-log-service.exe 7z a -mx9 nmdc-log-service-${version}-win64.7z nmdc-log-service.exe >/dev/null rm ./nmdc-log-service.exe echo "Building win32..." - GOARCH=386 GOOS=windows go build -ldflags -s -o nmdc-log-service.exe + GOARCH=386 GOOS=windows go build -a -ldflags -s -o nmdc-log-service.exe 7z a -mx9 nmdc-log-service-${version}-win32.7z nmdc-log-service.exe >/dev/null rm ./nmdc-log-service.exe echo "Building linux64..." - GOARCH=amd64 GOOS=linux go build -ldflags -s -o nmdc-log-service + GOARCH=amd64 GOOS=linux go build -a -ldflags -s -o nmdc-log-service XZ_OPT=-9 tar caf nmdc-log-service-${version}-linux64.tar.xz nmdc-log-service --owner=0 --group=0 rm ./nmdc-log-service echo "Building linux32..." - GOARCH=386 GOOS=linux go build -ldflags -s -o nmdc-log-service + GOARCH=386 GOOS=linux go build -a -ldflags -s -o nmdc-log-service XZ_OPT=-9 tar caf nmdc-log-service-${version}-linux32.tar.xz nmdc-log-service --owner=0 --group=0 rm ./nmdc-log-service