Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Issue 223068: code review 223068: Add -r option to 6l/8l/5l. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years ago by iant
Modified:
15 years ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

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.

Patch Set 1 #

Patch Set 2 : code review 223068: Add -r option to 6l/8l/5l. #

Patch Set 3 : code review 223068: Add -r option to 6l/8l/5l. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -3 lines) Patch
M src/cmd/5l/asm.c View 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/5l/doc.go View 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/5l/l.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/5l/obj.c View 2 chunks +4 lines, -1 line 0 comments Download
M src/cmd/6l/asm.c View 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/6l/doc.go View 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/6l/l.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/6l/obj.c View 2 chunks +4 lines, -1 line 0 comments Download
M src/cmd/8l/asm.c View 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/8l/doc.go View 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/8l/l.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/8l/obj.c View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 8
iant
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years ago (2010-02-26 21:06:10 UTC) #1
rsc
LGTM Is there a way to use hierarchical paths with -r? I hard-code whole path ...
15 years ago (2010-02-26 21:08:16 UTC) #2
r2
please add the flag to doc.go in those directories. On 27/02/2010, at 8:06 AM, iant@golang.org ...
15 years ago (2010-02-26 21:14:50 UTC) #3
iant2
Russ Cox <rsc@golang.org> writes: > Is there a way to use hierarchical paths with -r? ...
15 years ago (2010-02-26 21:19:13 UTC) #4
iant2
"Rob 'Commander' Pike" <r@google.com> writes: > please add the flag to doc.go in those directories. ...
15 years ago (2010-02-26 21:25:27 UTC) #5
r2
docs LGTM
15 years ago (2010-02-26 21:32:48 UTC) #6
rsc
Sounds like maybe a better option is to use -r $GOROOT/pkg/$GOOS_$GOARCH and then use an ...
15 years ago (2010-02-26 21:35:18 UTC) #7
iant
15 years ago (2010-02-26 22:04:03 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=7dfb7f11a440 ***

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
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b