nvidia-x11: add a symlink for libGLESv2.so.2 (close #9024)
nvidia's EGL stack looks for libGLESv2.so.2 at runtime (confirmed by watching strace), however builder.sh only provides a libGLESv2.so.1 symlink. @vcunat ported to legacy_340; older ones don't produce GLES.
This commit is contained in:
parent
ff219393ca
commit
ebe67d3c85
@ -93,6 +93,12 @@ installPhase() {
|
||||
patchelf --set-rpath "$out/lib:$allLibPath" "$libname"
|
||||
|
||||
libname_short=`echo -n "$libname" | sed 's/so\..*/so/'`
|
||||
|
||||
# nvidia's EGL stack seems to expect libGLESv2.so.2 to be available
|
||||
if [ $(basename "$libname_short") == "libGLESv2.so" ]; then
|
||||
ln -srnf "$libname" "$libname_short.2"
|
||||
fi
|
||||
|
||||
ln -srnf "$libname" "$libname_short"
|
||||
ln -srnf "$libname" "$libname_short.1"
|
||||
done
|
||||
|
@ -61,6 +61,12 @@ installPhase() {
|
||||
patchelf --set-rpath "$out/lib:$allLibPath" "$libname"
|
||||
|
||||
libname_short=`echo -n "$libname" | sed 's/so\..*/so/'`
|
||||
|
||||
# nvidia's EGL stack seems to expect libGLESv2.so.2 to be available
|
||||
if [ $(basename "$libname_short") == "libGLESv2.so" ]; then
|
||||
ln -srnf "$libname" "$libname_short.2"
|
||||
fi
|
||||
|
||||
ln -srnf "$libname" "$libname_short"
|
||||
ln -srnf "$libname" "$libname_short.1"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user