aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2020-10-22 18:29:26 +0200
committerMarius Bakke <marius@gnu.org>2020-10-22 18:41:29 +0200
commitb10fdd510e2a48438b1ae07232e5275ddbf6e582 (patch)
treea7e67cd7ff8a50e20a67752aac3db893fc7d36ab /gnu/packages
parentf8eaeea83394e273eab0802bedad415b67a7c546 (diff)
downloadguix-b10fdd510e2a48438b1ae07232e5275ddbf6e582.tar
guix-b10fdd510e2a48438b1ae07232e5275ddbf6e582.tar.gz
gnu: ungoogled-chromium: Embed absolute references to libGL and friends.
* gnu/packages/chromium.scm (ungoogled-chromium)[arguments]: Provide absolute references to dlopen'd Mesa libraries.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/chromium.scm10
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/packages/chromium.scm b/gnu/packages/chromium.scm
index 7bc69c7386..344f3a72ef 100644
--- a/gnu/packages/chromium.scm
+++ b/gnu/packages/chromium.scm
@@ -617,6 +617,16 @@
(substitute* "device/udev_linux/udev1_loader.cc"
(("libudev\\.so\\.1")
(string-append udev "/lib/libudev.so.1")))
+
+ (substitute* '("ui/ozone/platform/x11/gl_ozone_glx.cc"
+ "ui/ozone/common/egl_util.cc"
+ "ui/gl/init/gl_initializer_linux_x11.cc")
+ (("libGL\\.so\\.1")
+ (string-append mesa "/lib/libGL.so.1"))
+ (("libEGL\\.so\\.1")
+ (string-append mesa "/lib/libEGL.so.1"))
+ (("libGLESv2\\.so\\.2")
+ (string-append mesa "/lib/libGLESv2.so.2")))
#t)))
(add-before 'configure 'prepare-build-environment
(lambda* (#:key inputs #:allow-other-keys)