diff options
author | Ian Lance Taylor <iant@golang.org> | 2010-02-26 14:03:52 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2010-02-26 14:03:52 -0800 |
commit | af11b1b86dbe30e9a35fa3cd6c5b3775a3c74a31 (patch) | |
tree | 606c0a351c81516bc01bf3a74c04716e2ecabaea /src/cmd/5l/doc.go | |
parent | 3e86f1a9b48d063a29ebf9fdfc84978f762f9b0e (diff) | |
download | golang-af11b1b86dbe30e9a35fa3cd6c5b3775a3c74a31.tar.gz |
Add -r option to 6l/8l/5l.
This permits more flexibility with cgo and swig in cases where
the program is run on a machine other than the one on which it
is built. Rather than storing the absolute path to the shared
library in the DT_NEEDED entry, we can store just the name,
and let the dynamic linker find it using DT_RUNPATH or the
LD_LIBRARY_PATH environment variable.
R=rsc
CC=golang-dev
http://codereview.appspot.com/223068
Diffstat (limited to 'src/cmd/5l/doc.go')
-rw-r--r-- | src/cmd/5l/doc.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/5l/doc.go b/src/cmd/5l/doc.go index b724e7012..b09995d71 100644 --- a/src/cmd/5l/doc.go +++ b/src/cmd/5l/doc.go @@ -23,6 +23,8 @@ Options new in this version: -L dir1,dir2,.. Search for libraries (package files) in the comma-separated list of directories. The default is the single location $GOROOT/pkg/$GOOS_arm. +-r dir1:dir2:... + Set the dynamic linker search path when using ELF. -V Print the linker version. |