Module: Mesa
Branch: main
Commit: 9f0866018c53099026a062240dde68c9340ff4a2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f0866018c53099026a062240dde68c9340ff4a2

Author: Feng Jiang <[email protected]>
Date:   Tue May 23 15:44:20 2023 +0800

meson: Export winsys function symbols for target va

Export winsys function symbols of target va, even if the user
links with '-Bsymbolic-functions'.

It refers target vdpau, which commit is:
8c136b53b79e90b9e8f30f891b8bef112fee375d
("fix vdpau interop when using -Bsymbolic-functions in ldflags")

Signed-off-by: Feng Jiang <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23177>

---

 src/gallium/targets/va/meson.build | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/targets/va/meson.build 
b/src/gallium/targets/va/meson.build
index d3b3658d2b6..dc772ef38dc 100644
--- a/src/gallium/targets/va/meson.build
+++ b/src/gallium/targets/va/meson.build
@@ -30,6 +30,10 @@ if with_ld_version_script
   va_link_args += ['-Wl,--version-script', 
join_paths(meson.current_source_dir(), 'va.sym')]
   va_link_depends += files('va.sym')
 endif
+if with_ld_dynamic_list
+  va_link_args += ['-Wl,--dynamic-list', 
join_paths(meson.current_source_dir(), '../dri-vdpau.dyn')]
+  va_link_depends += files('../dri-vdpau.dyn')
+endif
 
 link_with_libva_gallium = [
   libgalliumvlwinsys, libgalliumvl, libgallium,

Reply via email to