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/8l/obj.c | |
| 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/8l/obj.c')
| -rw-r--r-- | src/cmd/8l/obj.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/src/cmd/8l/obj.c b/src/cmd/8l/obj.c index c3044c256..cd7984d71 100644 --- a/src/cmd/8l/obj.c +++ b/src/cmd/8l/obj.c @@ -81,7 +81,7 @@ isobjfile(char *f)  void  usage(void)  { -	fprint(2, "usage: 8l [-options] [-E entry] [-H head] [-L dir] [-T text] [-R rnd] [-o out] main.8\n"); +	fprint(2, "usage: 8l [-options] [-E entry] [-H head] [-L dir] [-T text] [-R rnd] [-r path] [-o out] main.8\n");  	exits("usage");  } @@ -131,6 +131,8 @@ main(int argc, char *argv[])  	case 'R':  		INITRND = atolwhex(EARGF(usage()));  		break; +	case 'r': +		rpath = EARGF(usage());  		break;  	case 'x':	/* produce export table */  		doexp = 1; | 
