PR #24478 opened by Kacper Michajłow (kasper93)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24478
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24478.patch

The SPIR-V header probe runs while vulkan is still auto-enabled, before
check_deps has a chance to disable it for a missing dependency such as
threads.

This fixes builds without threads, which would fail to link:

  error: undefined symbol: backend_spirv
  referenced by ops.c:42 (libswscale/ops.c:42)

Fixes: 2b6fbcad6d


From 4bfc64e3939994c1d75107f2c1fd1c076b467c7f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <[email protected]>
Date: Mon, 14 Sep 2026 06:19:27 +0200
Subject: [PATCH] configure: make the SPIR-V header flags depend on vulkan
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The SPIR-V header probe runs while vulkan is still auto-enabled, before
check_deps has a chance to disable it for a missing dependency such as
threads.

This fixes builds without threads, which would fail to link:

  error: undefined symbol: backend_spirv
  referenced by ops.c:42 (libswscale/ops.c:42)

Fixes: 2b6fbcad6d

Signed-off-by: Kacper Michajłow <[email protected]>
---
 configure | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure b/configure
index d2f6b89b22..ef9053c915 100755
--- a/configure
+++ b/configure
@@ -3360,6 +3360,8 @@ videotoolbox_hwaccel_deps="videotoolbox pthreads"
 videotoolbox_hwaccel_extralibs="-framework QuartzCore"
 vulkan_deps="threads"
 vulkan_deps_any="libdl LoadLibrary"
+spirv_headers_spirv_h_deps="vulkan"
+spirv_unified1_spirv_h_deps="vulkan"
 
 apv_vulkan_hwaccel_deps="vulkan spirv_compiler"
 apv_vulkan_hwaccel_select="apv_decoder"
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to