Descriptioncmd/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.
Patch Set 1 #Patch Set 2 : diff -r 362b760ecfc7 https://code.google.com/p/go/ #Patch Set 3 : diff -r 0efe48e1edcf https://code.google.com/p/go/ #Patch Set 4 : diff -r 9f6d21a5b452 https://code.google.com/p/go/ #
Total comments: 2
Patch Set 5 : diff -r 9233f811c522 https://code.google.com/p/go/ #Patch Set 6 : diff -r 9233f811c522 https://code.google.com/p/go/ #Patch Set 7 : diff -r e388ce51be75 https://code.google.com/p/go/ #
MessagesTotal messages: 13
|