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:
Spencer Janssen 2015-07-28 00:54:09 -05:00 committed by Vladimír Čunát
parent ff219393ca
commit ebe67d3c85
2 changed files with 12 additions and 0 deletions

View File

@ -93,6 +93,12 @@ installPhase() {
patchelf --set-rpath "$out/lib:$allLibPath" "$libname" patchelf --set-rpath "$out/lib:$allLibPath" "$libname"
libname_short=`echo -n "$libname" | sed 's/so\..*/so/'` 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"
ln -srnf "$libname" "$libname_short.1" ln -srnf "$libname" "$libname_short.1"
done done

View File

@ -61,6 +61,12 @@ installPhase() {
patchelf --set-rpath "$out/lib:$allLibPath" "$libname" patchelf --set-rpath "$out/lib:$allLibPath" "$libname"
libname_short=`echo -n "$libname" | sed 's/so\..*/so/'` 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"
ln -srnf "$libname" "$libname_short.1" ln -srnf "$libname" "$libname_short.1"
done done