Commit 8877a2df authored by Ian Lance Taylor's avatar Ian Lance Taylor

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

R=golang-dev, daniel.morsing
CC=golang-dev
https://golang.org/cl/8070043
parent 1a427a69
......@@ -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";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment