diff options
| author | Shenghou Ma <minux.ma@gmail.com> | 2012-05-05 01:54:16 +0800 |
|---|---|---|
| committer | Shenghou Ma <minux.ma@gmail.com> | 2012-05-05 01:54:16 +0800 |
| commit | dac4c3eee949ccc395bde808832ab7b2bba370da (patch) | |
| tree | 928d76836cf0ac156b9f6737574a363f4f6ff023 /src/pkg/runtime | |
| parent | a29304bfb8c2b9afc0e0a5d6f7ffd2bfb2b51373 (diff) | |
| download | go-dac4c3eee949ccc395bde808832ab7b2bba370da.tar.xz | |
cmd/cgo, cmd/cc, cmd/ld: detect dynamic linker automatically
Some newer Linux distributions (Ubuntu ARM at least) use a new multiarch
directory organization, where dynamic linker is no longer in the hardcoded
path in our linker.
For example, Ubuntu 12.04 ARM hardfloat places its dynamic linker at
/lib/arm-linux-gnueabihf/ld-linux.so.3
Ref: http://lackof.org/taggart/hacking/multiarch/
Also, to support Debian GNU/kFreeBSD as a FreeBSD variant, we need this capability, so it's part of issue 3533.
This CL add a new pragma (#pragma dynlinker "path") to cc.
R=iant, rsc
CC=golang-dev
https://golang.org/cl/6086043
Diffstat (limited to 'src/pkg/runtime')
0 files changed, 0 insertions, 0 deletions
