You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ uname -a
Darwin users-MacBook-Air.local 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64
$ go version
go version devel +c468957 Sun Sep 27 01:04:59 2015 +0000 darwin/amd64
# The only thing the program does is fmt.Print("Hello\n")
$ cd hello
$ go build -ldflags -w
$ hexdump -C hello | grep -c `basename $HOME`
58
The text was updated successfully, but these errors were encountered:
adg
changed the title
Compiled executable contains the full path of home directory (even with -ldflags -w)
cmd/link: executable contains the full path of GOROOT (even with -ldflags -w)
Sep 28, 2015
The text was updated successfully, but these errors were encountered: