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

Makefile: specify RPATH using $ORIGIN #1705

Merged
merged 1 commit into from
Jan 16, 2015
Merged

Conversation

longjon
Copy link
Contributor

@longjon longjon commented Jan 10, 2015

Currently, when dynamically linking against libcaffe (right now, only done for tests), RPATH is specified relative to the caffe source root, which means the resulting executable has to be executed from the same directory.
This commit uses the special $ORIGIN variable of RPATH to specify a path relative to the executable itself, so that there is no dependence on the working directory. (This is broken out into a make variable, DYNAMIC_LDFLAGS, that will be useful in a future PR.)

Currently, when dynamically linking against libcaffe (right now, only
done for tests), RPATH is specified relative to the caffe source root.
This commit fixes RPATH using the special $ORIGIN variable to be
relative to the executable itself, so that there is no dependence on the
working directory.
shelhamer added a commit that referenced this pull request Jan 16, 2015
Makefile: specify RPATH using $ORIGIN
@shelhamer shelhamer merged commit dbc1527 into BVLC:dev Jan 16, 2015
@shelhamer
Copy link
Member

Sounds good -- is the future dynamic linking for the tools and pycaffe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants