1. 25 Sep, 2015 1 commit
    • Shawn Walker-Salas's avatar
      cmd/go: elide -rpath when not applicable and used via LDFLAGS · dc6df1b0
      Shawn Walker-Salas authored
      Some linker flags should only be applied when performing the final
      linking step for a shared library or executable, etc. In other
      contexts, they're either invalid, or meaningless to apply (so should
      not be specified).
      
      When an external linker is used (either directly by Go or by the
      compiler driver used by cgo), -rpath and -rpath-link should only be
      specified in the final linking step.  On platforms such as Solaris,
      ld(1) will reject its use in any other scenario (such as when linking
      relocatable objects).
      
      This change is necessary because Go does not currently offer a way to
      specify LDFLAGS based on when they should be applied.
      
      Fixes #12115
      
      Change-Id: If35a18d8eee8ec7ddcca2d4ccd41ab6ffcf93b41
      Reviewed-on: https://go-review.googlesource.com/14674Reviewed-by: default avatarMinux Ma <minux@golang.org>
      Run-TryBot: Minux Ma <minux@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      dc6df1b0
  2. 24 Sep, 2015 8 commits
  3. 23 Sep, 2015 17 commits
  4. 22 Sep, 2015 6 commits
  5. 21 Sep, 2015 8 commits