forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the default solib dir to rpath even when all shared libs have tra…
…nsitions. When an executable has dynamically-linked dependencies that have transitions, shared libraries are looked up under rpaths like this: $ORIGIN/(../)*_solib_k8/../../../k8-fastbuild-ST-[0-9a-f]+/bin/_solib_k8 Unless running under the execroot, the transitioned solib directory may not be available at all; the right files are actually present under the default solib directory, so it should be an rpath. Adding another directory to the rpath may cause the wrong version of a shared library to be loaded. To prevent this, we also add the transition mnemonic to the name of the library (adding the default solib last to the rpath won't really help, because it could legitimately be added first). This is a potential issue only when running locally under the execroot, but it could be annoying to debug.
- Loading branch information
Showing
4 changed files
with
133 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters