Skip to content

Allow (and use by default) ORIGIN-relative driver paths #266

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rcombs
Copy link
Contributor

@rcombs rcombs commented Jan 14, 2019

This behaves similarly to the $ORIGIN feature in the RPATH and RUNPATH ELF headers. It allows libva and the driver modules to be directory-portable (without having to set the env var at runtime), since libva only needs the path to the library dir relative to its own install dir, rather than an absolute path.

This retains compatibility with existing drivers' build systems by setting the pkgconfig driverdir value, as with the existing code.

As far as I can tell, dladdr is available on all targeted systems.

I was initially concerned that using dladdr this way might cause problems for static linking, but that's not supported in libva anyway.

@rcombs
Copy link
Contributor Author

rcombs commented Feb 11, 2019

Anyone have any opinions on this?

@rcombs
Copy link
Contributor Author

rcombs commented Mar 23, 2019

Ping; can anyone take a look at this?

@XinfengZhang XinfengZhang requested review from uartie and xhaihao May 9, 2019 07:39
@XinfengZhang
Copy link
Contributor

not familiar with this part, @xhaihao could you help to review it?

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

Successfully merging this pull request may close these issues.

2 participants