aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAaron Wood <aaronjwood@gmail.com>2017-01-28 17:16:34 -0500
committer无闻 <u@gogs.io>2017-01-28 17:16:34 -0500
commit263203ec28584d5c9c671257016b510783ef7c9f (patch)
tree98507d985e4d69211c4520d7250a8eceb5562f20 /scripts
parent84f28fc5d667a24caf24a000047c4af6efe1af16 (diff)
Produce a position independent executable (#4011)
* Produce a position independent executable * Add OS detection to the main Makefile so we don't apply -pie on OS X
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_linux64.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build_linux64.sh b/scripts/build_linux64.sh
index 528fc54c..8b3a68c2 100755
--- a/scripts/build_linux64.sh
+++ b/scripts/build_linux64.sh
@@ -5,7 +5,7 @@ outPath=./output_$outPlattform_$outArch
rm -rf $outPath
mkdir $outPath
-CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../gogs.go
+CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build -buildmode=pie ../gogs.go
chmod +x gogs
mv gogs $outPath/