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:
parent
1a427a697e
commit
8877a2dfee
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user