Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Add libEGL.so symlink #146

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tools/src/nvidia/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,14 @@ func (v *Volume) Create(s FileCloneStrategy) (err error) {
return err
}
}
// XXX libcuda.so assumes that libEGL.so exists.
// Hardcode the libEGL symlink for the time being.
if strings.HasPrefix(soname[0], "libEGL") {
l = strings.TrimRight(l, ".0123456789")
if err := os.Symlink(path.Base(f), l); err != nil && !os.IsExist(err) {
return err
}
}
// XXX GLVND requires this symlink for indirect GLX support
// It won't be needed once we have an indirect GLX vendor neutral library.
if strings.HasPrefix(soname[0], "libGLX_nvidia") {
Expand Down