diff options
author | Valery Piashchynski <[email protected]> | 2020-03-13 22:54:09 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-03-13 22:54:09 +0300 |
commit | 08cb93c98f7be3790d51160d64797f35591cc04b (patch) | |
tree | 8a7d095203995af440dc534e635b86f7c72fa19d /build.sh | |
parent | bb96eee28c4a171ad663861e08fce73708ce09ad (diff) |
Add -trimpath to the build script
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |