1. 03 1月, 2019 4 次提交
    • M
      Merge pull request #1994 from eli-schwartz/goflags · f56701cd
      Mislav Marohnić 提交于
      build: respect environment LDFLAGS and strip the build path
      f56701cd
    • M
      Support `trimpath` for Go v1.8/1.9 · dd5388fe
      Mislav Marohnić 提交于
      Go 1.10 release notes:
      
      > The go build -asmflags, -gcflags, -gccgoflags, and -ldflags options
      > now apply by default only to the packages listed directly on the
      > command line. For example, go build -gcflags=-m mypkg passes the
      > compiler the -m flag when building mypkg but not its dependencies. The
      > new, more general form -asmflags=pattern=flags (and similarly for the
      > others) applies the flags only to the packages matching the pattern.
      > For example: go install -ldflags=cmd/gofmt=-X=main.version=1.2.3
      > cmd/... installs all the commands matching cmd/... but only applies
      > the -X option to the linker flags for cmd/gofmt. For more details, see
      > go help build.
      dd5388fe
    • M
    • E
      build: respect environment LDFLAGS and strip the build path · 39e15234
      Eli Schwartz 提交于
      golang does not natively respect LDFLAGS, but you can pass them on the
      command line using -ldflags=-extldflags=...
      This is important for distributions, in order to provide common
      functionality such as hardening flags.
      
      Also strip the prefixed root source directory from the embedded source
      file paths. This is not important information for the debugger, which
      should only care about paths relative to $GOPATH, and results in less
      build environment metadata leaking into the final binary. (This also
      aids in reproducible builds when using different build directories, see
      e.g. https://github.com/golang/go/issues/16860)
      39e15234
  2. 02 1月, 2019 2 次提交
  3. 31 12月, 2018 1 次提交
  4. 30 12月, 2018 1 次提交
  5. 29 12月, 2018 12 次提交
  6. 28 12月, 2018 14 次提交
  7. 23 12月, 2018 2 次提交
  8. 21 12月, 2018 3 次提交
  9. 20 12月, 2018 1 次提交