diff --git a/bin/cross-compile.go b/bin/cross-compile.go index 2280a7408..22f57d3fd 100644 --- a/bin/cross-compile.go +++ b/bin/cross-compile.go @@ -182,6 +182,7 @@ func compileArch(version, goos, goarch, dir string) bool { args := []string{ "go", "build", "--ldflags", "-s -X github.com/rclone/rclone/fs.Version=" + version, + "-trimpath", "-i", "-o", output, "-tags", *tags,