cogl: force linking against libGL if used

Otheriwse, if Cairo's GL backend is disabled, libGL doesn't end up in
cogl's rpath, so applications using cogl (like gthumb) will fail to
launch when they search for libGL and can't find it.
This commit is contained in:
Alyssa Ross
2023-10-20 22:02:38 +00:00
parent 287e4618a1
commit 48f289e3e3
@@ -53,6 +53,9 @@ stdenv.mkDerivation rec {
"--enable-wayland-egl-server"
"--enable-gles1"
"--enable-gles2"
# Force linking against libGL.
# Otherwise, it tries to load it from the runtime library path.
"LIBS=-lGL"
] ++ lib.optionals stdenv.isDarwin [
"--disable-glx"
"--without-x"