Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: add -r options to host ld #2433

Closed
gopherbot opened this issue Nov 9, 2011 · 6 comments
Closed

cmd/go: add -r options to host ld #2433

gopherbot opened this issue Nov 9, 2011 · 6 comments
Milestone

Comments

@gopherbot
Copy link

by reddooots:

There seems to be no way to pass the -r flag to ld when using goinstall.  I am working
around it with a Makefile for now but being able to use goinstall would be nice.
@rsc
Copy link
Contributor

rsc commented Nov 9, 2011

Comment 1:

It is unclear to me whether this is really
something we want to support.  The correct fix
is usually to set the system's library path
appropriately.

Status changed to Thinking.

@ianlancetaylor
Copy link
Contributor

Comment 2:

I think there will be cases where setting -r is going to be necessary.  E.g., it's
necessary when working with a newer version of a shared library than the one that the
system uses, if you don't want to disturb the system.

@rsc
Copy link
Contributor

rsc commented Dec 9, 2011

Comment 3:

Labels changed: added priority-later.

@alberts
Copy link
Contributor

alberts commented Jan 23, 2012

Comment 4:

FYI, there's a chrpath command included with some Linux distributions that can patch a
new rpath into some binaries.

@rsc
Copy link
Contributor

rsc commented Sep 12, 2012

Comment 6:

Labels changed: added go1.1maybe.

@rsc
Copy link
Contributor

rsc commented Dec 9, 2012

Comment 7:

I believe this is fixed by the go tool respecting the CGO_LDFLAGS environment variable.

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1maybe label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants