1
0
mirror of https://github.com/golang/go synced 2024-11-20 00:04:43 -07:00

cmd/ld: when using host linker pass -r option as -rpath

R=golang-dev, daniel.morsing
CC=golang-dev
https://golang.org/cl/8070043
This commit is contained in:
Ian Lance Taylor 2013-03-28 09:37:32 -07:00
parent 1a427a697e
commit 8877a2dfee

View File

@ -636,6 +636,9 @@ hostlink(void)
argv[argc++] = "-o";
argv[argc++] = outfile;
if(rpath)
argv[argc++] = smprint("-Wl,-rpath,%s", rpath);
// Force global symbols to be exported for dlopen, etc.
// NOTE: May not work on OS X or Windows. We'll see.
argv[argc++] = "-rdynamic";