[vlc-commits] [Git][videolan/vlc][master] contrib: libplacebo: backport glslang 15.0.0 link fix
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Oct 26 07:07:38 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
16cc5492 by Fatih Bakal at 2026-10-25T18:50:33+00:00
contrib: libplacebo: backport glslang 15.0.0 link fix
glslang 15.0.0 no longer provides the glslang::* symbols transitively via
libSPIRV/libglslang-default-resource-limits. libplacebo 5.264.1 only looks
for those, so linking the static contrib libplacebo fails with undefined
references to glslang::*.
Backport upstream commit 056b852018db04aa2ebc0982e27713afcea8106b
("meson: add glslang lib for 15.0.0 linking") to v5.264.1 with
`git cherry-pick -xs` instead of carrying a locally written patch.
Unlike upstream, only require libglslang when
glslang-default-resource-limits is not found, so that older glslang
versions, which provide the symbols through it, keep working.
This is needed for the Flatpak build, which reuses glslang 15.x from
org.kde.Sdk//6.11.
Signed-off-by: Fatih Bakal <fatihbakal7 at protonmail.com>
- - - - -
2 changed files:
- + contrib/src/libplacebo/0001-meson-add-glslang-lib-for-15.0.0-linking.patch
- contrib/src/libplacebo/rules.mak
Changes:
=====================================
contrib/src/libplacebo/0001-meson-add-glslang-lib-for-15.0.0-linking.patch
=====================================
@@ -0,0 +1,28 @@
+From 4eb41221d26dab18e9a59a756ef49649af23df43 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <kasper93 at gmail.com>
+Date: Mon, 2 Dec 2024 17:10:00 +0100
+Subject: [PATCH] meson: add glslang lib for 15.0.0 linking
+
+Glslang 15.0.0 moved some code around, add also linking to glslang,
+while this is not needed for older versions, it will still work.
+
+(cherry picked from commit 056b852018db04aa2ebc0982e27713afcea8106b)
+---
+ src/glsl/meson.build | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/glsl/meson.build b/src/glsl/meson.build
+index 5cebfb89..4f68da11 100644
+--- a/src/glsl/meson.build
++++ b/src/glsl/meson.build
+@@ -39,6 +39,10 @@ elif not glslang_req.disabled()
+
+ glslang_deps += spirv
+
++ # Glslang 15.0.0 moved some code around, add also linking to glslang, while
++ # this is not needed for older versions, it will still work.
++ glslang_deps += cxx.find_library('glslang', required: not cxx.find_library('glslang-default-resource-limits', required: false).found(), static: static)
++
+ if static
+ glslang_deps += [
+ # Always required for static linking
=====================================
contrib/src/libplacebo/rules.mak
=====================================
@@ -41,6 +41,7 @@ libplacebo: $(PLACEBO_ARCHIVE) .sum-libplacebo
$(APPLY) $(SRC)/libplacebo/0001-meson-allow-overriding-python3-path.patch
$(APPLY) $(SRC)/libplacebo/0001-meson-allow-forcing-the-path-to-look-for-libraries.patch
$(APPLY) $(SRC)/libplacebo/0001-vulkan-utils_gen-fix-for-python-3.14.patch
+ $(APPLY) $(SRC)/libplacebo/0001-meson-add-glslang-lib-for-15.0.0-linking.patch
$(MOVE)
.libplacebo: libplacebo crossfile.meson .python-venv
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/16cc549204a3e0adbea3db8d0fdf8fa6288274fb
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/16cc549204a3e0adbea3db8d0fdf8fa6288274fb
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list