Skip to content

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