summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-03-13 22:54:09 +0300
committerValery Piashchynski <[email protected]>2020-03-13 22:54:09 +0300
commit08cb93c98f7be3790d51160d64797f35591cc04b (patch)
tree8a7d095203995af440dc534e635b86f7c72fa19d /build.sh
parentbb96eee28c4a171ad663861e08fce73708ce09ad (diff)
Add -trimpath to the build script
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 2a696538..81841f7d 100755
--- a/build.sh
+++ b/build.sh
@@ -44,7 +44,7 @@ build_musl() {
echo Packaging "$2" Build
bdir=roadrunner-${RR_VERSION}-$1-$2-$3
rm -rf builds/"$bdir" && mkdir -p builds/"$bdir"
- CC=musl-gcc GOARCH=amd64 go build -ldflags "$LDFLAGS" -o "$OD/rr" cmd/rr/main.go
+ CC=musl-gcc GOARCH=amd64 go build -trimpath -ldflags "$LDFLAGS" -o "$OD/rr" cmd/rr/main.go
mv rr builds/"$bdir"
@@ -68,4 +68,4 @@ if [ "$1" == "all" ]; then
exit
fi
-CGO_ENABLED=0 go build -ldflags "$LDFLAGS" -o "$OD/rr" cmd/rr/main.go
+CGO_ENABLED=0 go build -trimpath -ldflags "$LDFLAGS" -o "$OD/rr" cmd/rr/main.go