Merge pull request #64809 from ambrop72/chromium-egl-fix
chromium: Fix running with --use-gl=egl.
This commit is contained in:
commit
8281a67be0
@ -13,7 +13,7 @@
|
|||||||
, bison, gperf
|
, bison, gperf
|
||||||
, glib, gtk3, dbus-glib
|
, glib, gtk3, dbus-glib
|
||||||
, glibc
|
, glibc
|
||||||
, libXScrnSaver, libXcursor, libXtst, libGLU_combined
|
, libXScrnSaver, libXcursor, libXtst, libGLU_combined, libGL
|
||||||
, protobuf, speechd, libXdamage, cups
|
, protobuf, speechd, libXdamage, cups
|
||||||
, ffmpeg, libxslt, libxml2, at-spi2-core
|
, ffmpeg, libxslt, libxml2, at-spi2-core
|
||||||
, jdk
|
, jdk
|
||||||
@ -309,6 +309,13 @@ let
|
|||||||
targets = extraAttrs.buildTargets or [];
|
targets = extraAttrs.buildTargets or [];
|
||||||
commands = map buildCommand targets;
|
commands = map buildCommand targets;
|
||||||
in concatStringsSep "\n" commands;
|
in concatStringsSep "\n" commands;
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
# Make sure that libGLESv2 is found by dlopen (if using EGL).
|
||||||
|
chromiumBinary="$libExecPath/$packageName"
|
||||||
|
origRpath="$(patchelf --print-rpath "$chromiumBinary")"
|
||||||
|
patchelf --set-rpath "${libGL}/lib:$origRpath" "$chromiumBinary"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Remove some extraAttrs we supplied to the base attributes already.
|
# Remove some extraAttrs we supplied to the base attributes already.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user