]> Cypherpunks repositories - gostls13.git/commit
cmd/link: add LC_VERSION_MIN_MACOSX to linkmode=internal OS X binaries
authorRuss Cox <rsc@golang.org>
Wed, 13 Jan 2016 14:59:16 +0000 (09:59 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 13 Jan 2016 19:06:40 +0000 (19:06 +0000)
commit4a0eee2faa3c54dd267c76fe8d8c332cb6badc80
tree6c007b13559151a2a982a12fac941ec851f9f769
parentdd6753a6f28ade7b7d24d082b438de3c7dd48557
cmd/link: add LC_VERSION_MIN_MACOSX to linkmode=internal OS X binaries

This makes lldb willing to debug them.
The minimum version is hard-coded at OS X 10.7,
because that is the minimum that Go requires.
For more control over the version, users can
use linkmode=external and pass the relevant flags to the host linker.

Fixes #12941.

Change-Id: I20027be8aa034d07dd2a3326828f75170afe905f
Reviewed-on: https://go-review.googlesource.com/18588
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/macho.go